Skip to content

Commit

Permalink
fix(app/addon): correct user-id tag_user / untag_user
Browse files Browse the repository at this point in the history
Fix pandevice user-id tag_user / untag_user
  • Loading branch information
paulmnguyen committed Nov 18, 2020
1 parent a902f2a commit 5e61dd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Splunk_TA_paloalto/bin/lib/pandevice/pandevice/userid.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def tag_user(self, user, tags, timeout=None, prefix=None):
# Find the tags section for this specific user.
entries = ru.findall('./entry')
for entry in entries:
if entry.attrib['name'] == user:
if entry.attrib['user'] == user:
te = entry.find('./tag')
break
else:
Expand Down Expand Up @@ -705,7 +705,7 @@ def untag_user(self, user, tags=None, prefix=None):
# Find the tags section for this specific user.
entries = uu.findall('./entry')
for entry in entries:
if entry.attrib['name'] == user:
if entry.attrib['user'] == user:
break
else:
entry = ET.SubElement(uu, 'entry', {'user': user, })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def tag_user(self, user, tags, timeout=None, prefix=None):
# Find the tags section for this specific user.
entries = ru.findall('./entry')
for entry in entries:
if entry.attrib['name'] == user:
if entry.attrib['user'] == user:
te = entry.find('./tag')
break
else:
Expand Down Expand Up @@ -705,7 +705,7 @@ def untag_user(self, user, tags=None, prefix=None):
# Find the tags section for this specific user.
entries = uu.findall('./entry')
for entry in entries:
if entry.attrib['name'] == user:
if entry.attrib['user'] == user:
break
else:
entry = ET.SubElement(uu, 'entry', {'user': user, })
Expand Down

0 comments on commit 5e61dd5

Please sign in to comment.