-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
Milestone
Description
Description of Issue/Question
state.sls_id ignores pillar data provided as CLI argument:
$ salt-ssh 'myserver' state.sls_id test_file test pillar='{"test_file": "123"}'
myserver:
----------
ID: test_file
Function: file.managed
Name: /root/.test_file
Result: False
Comment: Pillar test_file does not exist
Started: 10:37:04.734519
Duration: 2.125 ms
Changes:
While state.apply reads it correctly:
$ salt-ssh 'myserver' state.apply test pillar='{"test_file": "123"}'
myserver:
----------
ID: test_file
Function: file.managed
Name: /root/.test_file
Result: True
Comment: File /root/.test_file updated
Started: 10:36:32.526014
Duration: 16.789 ms
Changes:
----------
diff:
New file
Documentation says that pillar argument is supported by state.sls_id:
Setup
test.sls:
test_file:
file.managed:
- name: /root/.test_file
- contents_pillar: test_file
Steps to Reproduce Issue
Run state.sls_id with salt-ssh and set pillar data at the command line.
Versions Report
$ salt-ssh --versions-report
Salt Version:
Salt: 2018.3.3
Dependency Versions:
cffi: 1.11.5
cherrypy: Not Installed
dateutil: 2.7.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.30.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.0
mysql-python: Not Installed
pycparser: 2.19
pycrypto: 3.7.3
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.15 (default, Jan 10 2019, 23:20:52)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.1.2
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 5.1.1
ZMQ: 4.3.1
System Versions:
dist:
locale: UTF-8
machine: x86_64
release: 4.20.3-arch1-1-ARCH
system: Linux
version: Not Installed
Reactions are currently unavailable