-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Fix rollback in junos_config #31424
Fix rollback in junos_config #31424
Conversation
Fixes ansible#30778 * Call `load_configuration` with rollback id in case the id is given as input * Pass rollback id to `get_diff()` to fetch diff from device
@@ -101,9 +105,14 @@ def test_junos_config_confirm(self): | |||
self.assertEqual(kwargs['confirm_timeout'], 40) | |||
|
|||
def test_junos_config_rollback(self): | |||
set_module_args(dict(rollback=10)) | |||
rollback = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why you pulled this out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rollback value passed as input to the module is used in assert below to check right value is passed to function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...right. Well I feel silly now
* Fix rollback in junos_config Fixes ansible#30778 * Call `load_configuration` with rollback id in case the id is given as input * Pass rollback id to `get_diff()` to fetch diff from device * Fix unit test (cherry picked from commit 88da95b)
* Fix rollback in junos_config Fixes ansible#30778 * Call `load_configuration` with rollback id in case the id is given as input * Pass rollback id to `get_diff()` to fetch diff from device * Fix unit test
* Fix rollback in junos_config Fixes ansible#30778 * Call `load_configuration` with rollback id in case the id is given as input * Pass rollback id to `get_diff()` to fetch diff from device * Fix unit test
SUMMARY
Fixes #30778
load_configuration
with rollback id in casethe id is given as input
get_diff()
to fetch diff from deviceISSUE TYPE
COMPONENT NAME
junos_config
ANSIBLE VERSION
ADDITIONAL INFORMATION