summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/nxos/nxos_install_os.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/network/nxos/nxos_install_os.py')
-rw-r--r--lib/ansible/modules/network/nxos/nxos_install_os.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/ansible/modules/network/nxos/nxos_install_os.py b/lib/ansible/modules/network/nxos/nxos_install_os.py
index 21d1f2c8c2..3b87b5403d 100644
--- a/lib/ansible/modules/network/nxos/nxos_install_os.py
+++ b/lib/ansible/modules/network/nxos/nxos_install_os.py
@@ -60,6 +60,7 @@ options:
kickstart_image_file:
description:
- Name of the kickstart image file on flash.
+ (Not required on all Nexus platforms)
required: false
default: null
issu:
@@ -181,17 +182,6 @@ def get_platform(module):
return type
-def kickstart_image_required(module):
- '''Determine if platform requires a kickstart image'''
- data = execute_show_command(module, 'show version')[0]
- kickstart_required = False
- for x in data.split('\n'):
- if re.search(r'kickstart image file is:', x):
- kickstart_required = True
-
- return kickstart_required
-
-
def parse_show_install(data):
"""Helper method to parse the output of the 'show install all impact' or
'install all' commands.
@@ -564,10 +554,6 @@ def main():
if kif == 'null' or kif == '':
kif = None
- if kickstart_image_required(module) and kif is None:
- msg = 'This platform requires a kickstart_image_file'
- module.fail_json(msg=msg)
-
install_result = do_install_all(module, issu, sif, kick=kif)
if install_result['error']:
msg = "Failed to upgrade device using image "