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

Applying salt state file with function junos.cli with invalid RPC command reports status True and Succeeded: 1. #101

Open
rsmekala opened this issue Apr 11, 2019 · 1 comment

Comments

@rsmekala
Copy link

rsmekala commented Apr 11, 2019

Description of Issue/Question

root@nms5-salt-master-b:/srv/salt# cat junos_cli.sls 
show test:
  junos.cli
root@nms5-salt-master-b:/srv/salt# salt "vmx1" state.apply junos_cli
[WARNING ] /usr/local/lib/python2.7/site-packages/salt/payload.py:149: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  ret = msgpack.loads(msg, use_list=True, ext_hook=ext_type_decoder, encoding=encoding)

vmx1:
----------
          ID: show test
    Function: junos.cli
      Result: True
     Comment: 
     Started: 21:54:24.556946
    Duration: 120.09 ms
     Changes:   
              ----------
              message:
                  invalid command: show test: RpcError(severity: error, bad_element: test, message: syntax error, expecting <command>)
              out:
                  True

Summary for vmx1
------------
Succeeded: 1 (changed=1)
Failed:    0
@rsmekala rsmekala self-assigned this Apr 11, 2019
@rsmekala rsmekala changed the title Applying salt state file with function junos.rpc with invalid RPC command reports status True and Succeeded: 1. Applying salt state file with function junos.cli with invalid RPC command reports status True and Succeeded: 1. Apr 11, 2019
@rsmekala
Copy link
Author

This has to be handled from Pyez side. Issue Juniper/py-junos-eznc#925

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