mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
fix nxos_banner issue (#41026)
This commit is contained in:
@@ -197,7 +197,17 @@ def main():
|
|||||||
|
|
||||||
if commands:
|
if commands:
|
||||||
if not module.check_mode:
|
if not module.check_mode:
|
||||||
load_config(module, commands)
|
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
|
result['changed'] = True
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|||||||
Reference in New Issue
Block a user