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
Versions Report
Print the output from salt-sproxy -V inside the backticks below:
[root@SYD-SALT _runners]# salt-sproxy -V
Salt Version:
Salt: 3002
Salt SProxy: 2020.10.0
Dependency Versions:
Ansible: Not Installed
cffi: 1.14.3
dateutil: 2.6.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10.1
junos-eznc: 2.5.3
jxmlease: Not Installed
libgit2: Not Installed
M2Crypto: 0.35.2
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.2
NAPALM: 3.2.0
ncclient: 0.6.9
Netmiko: 3.3.2
paramiko: 2.7.2
pycparser: 2.20
pycrypto: Not Installed
pycryptodome: Not Installed
pyeapi: 0.8.3
pygit2: Not Installed
PyNetBox: 5.1.0
PyNSO: Not Installed
Python: 3.6.8 (default, Apr 16 2020, 01:36:27)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 19.0.0
scp: 0.13.3
smmap: Not Installed
textfsm: 1.1.0
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.3
System Versions:
dist: centos 8 Core
locale: UTF-8
machine: x86_64
release: 4.18.0-193.19.1.el8_2.x86_64
system: Linux
version: CentOS Linux 8 Core
Additional context
I've tried setting up an environment from scratch to see if I'm missing something, or if the version of Python3 makes any difference, however no such luck. It seems the variablesalt_function in salt_sproxy/_runners/proxy.py always evaluates to False in my case. Executing salt-sproxy '*' test.ping from the CLI works fine for any number of my test devices. I hope I'm just missing something obvious :-)
The text was updated successfully, but these errors were encountered:
Thanks for the detailed report @lacmcg. You're correct, the issue is with salt_function. I have patched this in #190, would you be able to give it a try and confirm?
Thanks for the detailed report @lacmcg. You're correct, the issue is with salt_function. I have patched this in #190, would you be able to give it a try and confirm?
Describe the bug
Executing a simple test.ping from salt-sapi always returns "Please specify a Salt function to execute." when executing via the examples provided at https://salt-sproxy.readthedocs.io/en/latest/salt_api.html
Steps To Reproduce
General -
Master config:
top.sls
nxapi-test.sls
Execute a POST with the payload as follows:
Result
salt-sapi debug:
Expected behavior
A response similar to when executing the same function via the CLI.
Versions Report
Print the output from
salt-sproxy -V
inside the backticks below:Additional context
I've tried setting up an environment from scratch to see if I'm missing something, or if the version of Python3 makes any difference, however no such luck. It seems the variable
salt_function
in salt_sproxy/_runners/proxy.py always evaluates to False in my case. Executingsalt-sproxy '*' test.ping
from the CLI works fine for any number of my test devices. I hope I'm just missing something obvious :-)The text was updated successfully, but these errors were encountered: