Fix last eos issue in net_* tests (#33726)

This should finally fix it.
pull/33820/head
Nathaniel Case 7 years ago committed by GitHub
parent 9ea1b18ff7
commit a2650cbe05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -237,7 +237,9 @@ def check_declarative_intent_params(want, module):
for i in w['interfaces']:
obj_in_have = search_obj_in_list(w['name'], have)
if obj_in_have and i not in obj_in_have.get('interfaces', []):
if obj_in_have:
interfaces = obj_in_have.get('interfaces')
if interfaces is not None and i not in interfaces:
module.fail_json(msg="Interface %s not configured on vrf %s" % (i, w['name']))

Loading…
Cancel
Save