-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Labels
Description
I need to get pic info. But how to avoid 0 & 1 converting to boolean?
- name: Get pic information
juniper.device.rpc:
rpc: get-pic-detail
kwargs:
fpc-slot: 0
pic-slot: 0
format: xml
register: response
Error message:
"attrs": null, "changed": false, "format": "xml", "kwargs": {"fpc-slot": false, "pic-slot": false}, "msg": "Unable to execute the RPC: b'<get-pic-detail xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" format="xml">\n \n \n\n'. Error: RpcError(severity: error, bad_element: fpc-slot, message: Invalid numeric value: '')", "rpc": "get-pic-detail"}
Thank you!