mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
junos_config: Remove reliance on ability to output configuration in set
format (#23225)
* Remove reliance on ability to output configuration in `set` format * Support multiple warnings per rpc-reply
This commit is contained in:
parent
01e27b1083
commit
597bca3129
4 changed files with 37 additions and 16 deletions
|
@ -157,7 +157,7 @@ def main():
|
|||
module.fail_json(msg='unable to retrieve device configuration')
|
||||
result['__backup__'] = str(match.text).strip()
|
||||
|
||||
diff = load_config(module, src, action=action, commit=commit, format=fmt)
|
||||
diff = load_config(module, src, warnings, action=action, commit=commit, format=fmt)
|
||||
if diff:
|
||||
result['changed'] = True
|
||||
if module._diff:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue