Skip to content

Commit

Permalink
fix: Safely check DG hierarchy info
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmog committed Sep 11, 2021
1 parent d3769a8 commit b143999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panos/panorama.py
Expand Up @@ -123,7 +123,7 @@ def refresh(self):

dev = self.obj.panorama()
state = dev.opstate.dg_hierarchy.fetch()
self.parent = state[self.obj.uid]
self.parent = state.get(self.obj.uid)

def update(self):
"""Change this device group's hierarchical parent.
Expand Down

0 comments on commit b143999

Please sign in to comment.