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