mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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:
parent
a28eb94f1a
commit
425537861a
4 changed files with 5 additions and 4 deletions
|
@ -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']))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue