mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix IOS TypeError * if flags are None, then ' '.join(flags) fails * fixed get_defaults_flag so that it returns a list, and ignores lines with white space Fixes #26918
This commit is contained in:
parent
0b5b5ec50a
commit
9f64e446c6
2 changed files with 4 additions and 4 deletions
|
@ -343,7 +343,7 @@ def get_running_config(module, current_config=None):
|
|||
if not module.params['defaults'] and current_config:
|
||||
contents, banners = extract_banners(current_config.config_text)
|
||||
else:
|
||||
flags = get_defaults_flag(module) if module.params['defaults'] else None
|
||||
flags = get_defaults_flag(module) if module.params['defaults'] else []
|
||||
contents = get_config(module, flags=flags)
|
||||
contents, banners = extract_banners(contents)
|
||||
return NetworkConfig(indent=1, contents=contents), banners
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue