1
0
Fork 0
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:
Trishna Guha 2017-07-27 14:28:46 +05:30 committed by GitHub
parent 81a9dada1c
commit 2eaf3571f3

View file

@ -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)