You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@nms5-salt-master-b:/srv/salt# cat junos_rpc.sls
get-system-information:
junos.rpc
root@nms5-salt-master-b:/srv/salt# salt "vmx1" state.apply junos_rpc
[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)
[ERROR ] An exception occurred in this state: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1933, in call
**cdata['kwargs'])
File "/usr/local/lib/python2.7/site-packages/salt/loader.py", line 1939, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/salt/states/junos.py", line 27, in wrapper
ret = function(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/salt/states/junos.py", line 82, in rpc
ret['changes'] = __salt__['junos.rpc'](name, dest, format, **kwargs)
File "/usr/local/lib/python2.7/site-packages/salt/modules/junos.py", line 99, in wrapper
return function(*args, **kwargs)
TypeError: rpc() takes at most 2 arguments (3 given)
vmx1:
----------
ID: get-system-information
Function: junos.rpc
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1933, in call
**cdata['kwargs'])
File "/usr/local/lib/python2.7/site-packages/salt/loader.py", line 1939, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/salt/states/junos.py", line 27, in wrapper
ret = function(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/salt/states/junos.py", line 82, in rpc
ret['changes'] = __salt__['junos.rpc'](name, dest, format, **kwargs)
File "/usr/local/lib/python2.7/site-packages/salt/modules/junos.py", line 99, in wrapper
return function(*args, **kwargs)
TypeError: rpc() takes at most 2 arguments (3 given)
Started: 20:03:26.052930
Duration: 7.296 ms
Changes:
Summary for vmx1
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
Total run time: 7.296 ms
ERROR: Minions returned with non-zero exit code
The text was updated successfully, but these errors were encountered:
rsmekala
changed the title
pplying salt state file with funciton junos.rpc fails with TypeError: rpc() takes at most 2 arguments (3 given)
Applying salt state file with funciton junos.rpc fails with TypeError: rpc() takes at most 2 arguments (3 given)
Apr 11, 2019
Description of Issue
The text was updated successfully, but these errors were encountered: