Skip to content

Commit

Permalink
Merge pull request Juniper#603 from chidanandpujar/ansible_release_v1…
Browse files Browse the repository at this point in the history
…02_update2

Fix for sphinx build failure
  • Loading branch information
chidanandpujar authored Nov 17, 2022
2 parents d8280b5 + 518c909 commit d661321
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ansible_collections/juniper/device/plugins/modules/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions tests/pb.juniper_junos_rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]

0 comments on commit d661321

Please sign in to comment.