Skip to content

Commit

Permalink
Fix: if there are no registered addresses iterator will throw exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Bojer authored and btorresgil committed Sep 12, 2016
1 parent 957bb0d commit eabfbd9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pandevice/userid.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ def get_all_registered_ip(self):
command = 'show object registered-ip all'
root = self.panfirewall.op(cmd=command, vsys=self.panfirewall.vsys, cmd_xml=True)
entries = root.findall("./result/entry")
if not entries:
return None
addresses = {}
for entry in entries:
ip = entry.get("ip")
Expand Down

0 comments on commit eabfbd9

Please sign in to comment.