Remove kickstart_image_required check (#36319)

pull/32318/merge
Mike Wiebe 7 years ago committed by Trishna Guha
parent e24c547a3a
commit 6e096cb0c9

@ -60,6 +60,7 @@ options:
kickstart_image_file: kickstart_image_file:
description: description:
- Name of the kickstart image file on flash. - Name of the kickstart image file on flash.
(Not required on all Nexus platforms)
required: false required: false
default: null default: null
issu: issu:
@ -181,17 +182,6 @@ def get_platform(module):
return type 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): def parse_show_install(data):
"""Helper method to parse the output of the 'show install all impact' or """Helper method to parse the output of the 'show install all impact' or
'install all' commands. 'install all' commands.
@ -564,10 +554,6 @@ def main():
if kif == 'null' or kif == '': if kif == 'null' or kif == '':
kif = None 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) install_result = do_install_all(module, issu, sif, kick=kif)
if install_result['error']: if install_result['error']:
msg = "Failed to upgrade device using image " msg = "Failed to upgrade device using image "

Loading…
Cancel
Save