Ios test fixes (#40503)

* Return messages generated from edit_config to module

* This does not seem to work that way

* Change test IP addresses to not conflict with device config
This commit is contained in:
Nathaniel Case 2018-05-21 17:51:21 -04:00 committed by GitHub
parent 8d39515914
commit eb818df1ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 12 deletions

View file

@ -296,9 +296,6 @@ def main():
result = {'changed': False}
if warnings:
result['warnings'] = warnings
want = map_params_to_obj(module)
have = map_config_to_obj(module)
@ -307,10 +304,14 @@ def main():
if commands:
if not module.check_mode:
load_config(module, commands)
resp = load_config(module, commands)
warnings.extend((out for out in resp if out))
result['changed'] = True
if warnings:
result['warnings'] = warnings
module.exit_json(**result)