Fix some net_* tests (#33593)

* Fix typo in net_logging/eos

* This seems to be required to use eos_user in this way

* Fix indentation in net_static_route/eos

* Rework interface check in eos_vrf

This should do the right thing.
This commit is contained in:
Nathaniel Case 2017-12-06 05:24:58 -05:00 committed by John R Barker
commit 425537861a
4 changed files with 5 additions and 4 deletions

View file

@ -237,7 +237,7 @@ 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 'interfaces' in obj_in_have and i not in obj_in_have['interfaces']:
if obj_in_have and i not in obj_in_have.get('interfaces', []):
module.fail_json(msg="Interface %s not configured on vrf %s" % (i, w['name']))