New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring nxos_save_config #39
Refactoring nxos_save_config #39
Conversation
Just some thoughts...
Do we actually need to do the The following conditional should work either way, but rather check in
Anything else we can do to improve the code block below? At a minimum, I'm thinking add the response when the module fails such as ` module.fail_json(msg=error, response=save_response)
What about this?
Last thing for now...change the |
Yeah, you're right man. I've just made the chages you suggested. |
Can you verify the error message is correct?
Should the Also, why do the comments in the test playbook say something about the file existing or not existing first to be successful? Does the |
Yes, if I try to overwrite an existing dir I receive this error:
Now I fix the doc. |
Refactoring nxos_save_config
Here I changed parsed_data_from_device a little bit to handle errors there. Let me know if this works for you :)