diff --git a/ansible_collections/juniper/device/plugins/modules/rpc.py b/ansible_collections/juniper/device/plugins/modules/rpc.py index 2ab3d0b7..335136c3 100644 --- a/ansible_collections/juniper/device/plugins/modules/rpc.py +++ b/ansible_collections/juniper/device/plugins/modules/rpc.py @@ -166,11 +166,6 @@ shown in the :ref:`rpc-examples-label`. - By default "0" and "1" will be converted to boolean values. In case it doesn't need to be transformed to boolean pass first kwargs as - allow_bool_values : "0" - example - - kwargs: - allow_bool_values: "0" - data: "1" required: false default: none type: dict or list of dict diff --git a/tests/pb.juniper_junos_rpc.yml b/tests/pb.juniper_junos_rpc.yml index 92c5a712..2a43affc 100644 --- a/tests/pb.juniper_junos_rpc.yml +++ b/tests/pb.juniper_junos_rpc.yml @@ -237,3 +237,34 @@ that: test10.results[0].msg == "The RPC executed successfully." tags: [ test10 ] + + - name: Check rollback info + rpc: + rpc: get-rollback-information + kwargs: + rollback: "3" + compare: "2" + register: test11 + tags: [ test11 ] + + - name: Check TEST 11 + assert: + that: + test11.msg == "The RPC executed successfully." + tags: [ test11 ] + + - name: Check rollback info with boolean values + rpc: + rpc: get-rollback-information + kwargs: + allow_bool_values : "0" + rollback: "1" + compare: "0" + register: test12 + tags: [ test12 ] + + - name: Check TEST 12 + assert: + that: + test12.msg == "The RPC executed successfully." + tags: [ test12 ]