Skip to content

Conversation

@rahkumar651991
Copy link
Contributor

@rahkumar651991 rahkumar651991 commented Aug 30, 2021

For kwargs in rpc the module checks if the value can be transformed to bool and converts it.
A flag can now be added in the kwargs to not convert into bool and keep the value as string.

The mandatory boolean conversion is not removed to keep backward compatibility.

For ex -
juniper_junos_rpc:
rpc: get-rollback-information
kwargs:
allow_bool_values: "0"
rollback: "2"
compare: 0

it will resolve #538 in collections.

Copy link
Collaborator

@dineshbaburam91 dineshbaburam91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the description of the issue and the fix.

@dineshbaburam91 dineshbaburam91 merged commit 757709a into Juniper:master Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

juniper_junos_rpc unexpected kwargs conversion to bool

2 participants