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