From 6e096cb0c94cc69d3df653dbc564df0eafc1f9e4 Mon Sep 17 00:00:00 2001 From: Mike Wiebe Date: Fri, 16 Feb 2018 23:50:31 -0500 Subject: [PATCH] Remove kickstart_image_required check (#36319) --- .../modules/network/nxos/nxos_install_os.py | 16 +--------------- 1 file changed, 1 insertion(+), 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 21d1f2c8c20..3b87b5403d9 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 "