Skip to content

How to avoid kwargs convert to boolean #791

@musnax

Description

@musnax

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!

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions