Skip to content

Commit

Permalink
only process strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mchugh19 committed Mar 29, 2019
1 parent 1db8075 commit 5354f24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions salt/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,9 +2134,10 @@ def format_slots(self, cdata):
if isinstance(arg, dict):
# Search dictionary values for __slot__:
for key, value in arg.items():
if value.startswith(SLOT_TEXT):
log.debug("Slot processsing dict value %s", value)
cdata[atype][ind][key] = self.__eval_slot(value)
if isinstance(value, six.text_type):
if value.startswith(SLOT_TEXT):
log.debug("Slot processsing dict value %s", value)
cdata[atype][ind][key] = self.__eval_slot(value)
elif isinstance(arg, list):
for idx, listvalue in enumerate(arg):
log.debug("Slot processing list value: %s", listvalue)
Expand Down

0 comments on commit 5354f24

Please sign in to comment.