Skip to content

Commit

Permalink
Fix for exception hit in Jenkins testbed
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Aug 20, 2019
1 parent e365e20 commit 73975c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions acitoolkit/aciphysobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3037,8 +3037,10 @@ def get(cls, session, pod_parent=None, node=None, module=None, port=None):
else:
resp.append(interface_obj)

resp = Interface._get_discoveryprot_relations(session, resp, 'cdp', cdp_policies)
resp = Interface._get_discoveryprot_relations(session, resp, 'lldp', lldp_policies)
if len(cdp_policies):
resp = Interface._get_discoveryprot_relations(session, resp, 'cdp', cdp_policies)
if len(lldp_policies):
resp = Interface._get_discoveryprot_relations(session, resp, 'lldp', lldp_policies)
return resp

def __str__(self):
Expand Down

0 comments on commit 73975c1

Please sign in to comment.