mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fix state absent nxos_hsrp (#27366)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user