paulbsd-salt/states/_modules/custom.py

19 lines
256 B
Python
Raw Normal View History

2020-07-10 00:58:55 +02:00
#!/usr/bin/python3
import salt.exceptions
def current_state(name):
ret = dict()
ret['name'] = name
ret['foo'] = 'foo'
return ret
def change_state(name, foo):
ret = dict()
ret['name'] = name
ret['foo'] = foo
return ret