added-highstate-output-to-slack-engine

This commit is contained in:
Giandom 2017-12-14 19:20:38 +01:00 committed by GitHub
parent 9a6e03ce6e
commit 573a0a4143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,9 +272,9 @@ def start(token,
ret = local.cmd('{0}'.format(target), cmd, arg=args, kwarg=kwargs, tgt_type='{0}'.format(tgt_type))
if ret:
salt.output.highstate.__opts__= __opts__
salt.output.highstate.__opts__ = __opts__
if 'color' not in salt.output.highstate.__opts__:
salt.output.highstate.__opts__.update({"color":""})
salt.output.highstate.__opts__.update({"color": ""})
return_text = salt.output.highstate.output(ret)
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y%m%d%H%M%S%f')