mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
fix state absent nxos_hsrp (#27366)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
81a9dada1c
commit
2eaf3571f3
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ def main():
|
||||||
load_config(module, commands)
|
load_config(module, commands)
|
||||||
|
|
||||||
# validate IP
|
# validate IP
|
||||||
if transport == 'cli':
|
if transport == 'cli' and state == 'present':
|
||||||
commands.insert(0, 'config t')
|
commands.insert(0, 'config t')
|
||||||
body = run_commands(module, commands)
|
body = run_commands(module, commands)
|
||||||
validate_config(body, vip, module)
|
validate_config(body, vip, module)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue