fix nxos_banner issue (#41026)

This commit is contained in:
saichint 2018-06-03 22:23:04 -07:00 committed by Trishna Guha
parent bd34194ace
commit b6afb77a8a

View file

@ -197,7 +197,17 @@ def main():
if commands:
if not module.check_mode:
msgs = load_config(module, commands, True)
if msgs:
for item in msgs:
if item:
if isinstance(item, dict):
err_str = item['clierror']
else:
err_str = item
if 'more than 40 lines' in err_str or 'buffer overflowed' in err_str:
load_config(module, commands)
result['changed'] = True
module.exit_json(**result)