Merge pull request #42884 from Giandom/2017.7.1-fix-slack-engine-pillar-args

Convert to dict type the pillar string value passed from slack
This commit is contained in:
garethgreenaway 2017-08-16 15:30:43 -07:00 committed by GitHub
commit 82be9dceb6

View File

@ -61,6 +61,7 @@ import logging
import time
import re
import yaml
import ast
try:
import slackclient
@ -245,6 +246,10 @@ def start(token,
tgt_type = kwargs['tgt_type']
del kwargs['tgt_type']
# Check for pillar string representation of dict and convert it to dict
if 'pillar' in kwargs:
kwargs.update(pillar=ast.literal_eval(kwargs['pillar']))
ret = {}
if cmd in runner_functions: