mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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)
|
||||
|
||||
# validate IP
|
||||
if transport == 'cli':
|
||||
if transport == 'cli' and state == 'present':
|
||||
commands.insert(0, 'config t')
|
||||
body = run_commands(module, commands)
|
||||
validate_config(body, vip, module)
|
||||
|
|
Loading…
Reference in a new issue