Skip to content

Instantly share code, notes, and snippets.

@rhoths
Created January 9, 2018 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhoths/f991a2941b32f57f2e17a5746ce75205 to your computer and use it in GitHub Desktop.
Save rhoths/f991a2941b32f57f2e17a5746ce75205 to your computer and use it in GitHub Desktop.
# This form works, but generates deprecation warnings
clients_roster_mine:
module.run:
- name: mine.send
- func: client_roster
- kwargs:
mine_function: file.read
path: /tmp/roster_file
- onchanges:
- file: clients_roster
===================
# This form is what I thought I'm supposed to be using, but this fails (with no feedback as to why)
clients_roster_mine:
module.run:
- name: mine.send
- func: client_roster
- mine_function: file.read
- path: /tmp/roster_file
- onchanges:
- file: clients_roster
@rhoths
Copy link
Author

rhoths commented Jan 9, 2018

Salt Version:
Salt: 2017.7.2

Dependency Versions:
cffi: 1.6.0
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: 0.24.6
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.8
mysql-python: 1.2.5
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: 3.4.3
pygit2: 0.24.2
Python: 2.7.5 (default, Aug 4 2017, 00:39:18)
python-gnupg: 0.3.8
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4

System Versions:
dist: centos 7.4.1708 Core
locale: UTF-8
machine: x86_64
release: 4.9.36-x86_64-linode85
system: Linux
version: CentOS Linux 7.4.1708 Core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment