Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saltstack: salt execution module junos.rpc options format and dest works only with get-config rpc #89

Closed
rsmekala opened this issue Apr 3, 2019 · 1 comment

Comments

@rsmekala
Copy link

rsmekala commented Apr 3, 2019

Description of Issue/Question

The current logic around optionsdest and format is incorrect. In salt, the module arguments are published under kwargs['__pub_arg'] but the current logic searches for format under kwargs directly.

dest is being handled as a positional argument only not as a keywod argument.

Logs:

➜ salt 'vmx' junos.rpc get-software-information format=text

vmx:
    ----------
    message:
        RPC execution failed due to "RpcError(severity: error, bad_element: format, message: error: syntax error, expecting <invoke-on>
        error: syntax error)"
    out:
        False

➜ salt 'vmx' junos.rpc get-software-information dest=/tmp/cli.out

vmx:
    ----------
    message:
        RPC execution failed due to "RpcError(severity: error, bad_element: dest, message: error: syntax error, expecting <invoke-on>
        error: syntax error)"
    out:
        False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant