This commit is contained in:
Mike Place 2016-02-03 13:22:54 -07:00 committed by rallytime
parent 38008b1102
commit 12d511f323
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
'''
Manage the Thorium complex event reaction system
'''
from __future__ import absolute_import
# Import salt libs
import salt.thorium

View File

@ -25,5 +25,5 @@ def save(name):
if not os.isdir(tgt_dir):
os.makedirs(tgt_dir)
with salt.utils.fopen(fn_, 'w+') as fp_:
fp_.write(json.dump(__reg__))
fp_.write(json.dumps(__reg__))
return ret

View File

@ -16,7 +16,7 @@ def cmd(
arg=(),
tgt_type='glob',
ret='',
kwargs=None,
kwarg=None,
**kwargs):
'''
Execute a remote execution command