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:
Nathaniel Case 2017-04-04 15:00:00 -04:00 committed by GitHub
commit 597bca3129
4 changed files with 37 additions and 16 deletions

View file

@ -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: