diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2017-09-15 15:34:32 -0400 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-15 12:37:12 -0700 |
commit | eeba9985924764090d1789617b674ca79108763d (patch) | |
tree | 9d5f3abc4f80499d2e882087800b15c25fe04c0d | |
parent | 06a066fe1b556bb0e8c15f1655cb78f0df42a3f6 (diff) | |
download | ansible-eeba9985924764090d1789617b674ca79108763d.tar.gz |
nxos_install_os install_state fix
(cherry picked from commit 7dc60c3f242250beeee66d27212ca5393dfbcdd4)
-rw-r--r-- | lib/ansible/modules/network/nxos/nxos_install_os.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ansible/modules/network/nxos/nxos_install_os.py b/lib/ansible/modules/network/nxos/nxos_install_os.py index d652d90242..9e16291903 100644 --- a/lib/ansible/modules/network/nxos/nxos_install_os.py +++ b/lib/ansible/modules/network/nxos/nxos_install_os.py @@ -189,7 +189,6 @@ def main(): warnings = list() check_args(module, warnings) - install_state = module.params['install_state'] system_image_file = module.params['system_image_file'] kickstart_image_file = module.params['kickstart_image_file'] @@ -203,6 +202,7 @@ def main(): kickstart_image_file): changed = True + install_state = current_boot_options if not module.check_mode and changed is True: set_boot_options(module, system_image_file, @@ -213,8 +213,6 @@ def main(): kickstart_image_file): module.fail_json(msg='Install not successful', install_state=install_state) - else: - install_state = current_boot_options module.exit_json(changed=changed, install_state=install_state, warnings=warnings) |