Skip to content

Commit

Permalink
Fix for failing Jenkins test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Nov 9, 2017
1 parent 05710d7 commit afe6224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acitoolkit/acitoolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5872,6 +5872,8 @@ def get_network_from_apic(self, session):
for ac in apic_classes:
query_url = ('/api/mo/uni/phys-' + self.name + '.json?query-target=subtree&target-subtree-class=' + ac)
ret = session.get(query_url)
if int(ret.json()['totalCount']) == 0:
continue
data_pool = ret.json()['imdata']
data_pool = data_pool[0]
if ac in data_pool:
Expand Down

0 comments on commit afe6224

Please sign in to comment.