From 5354f2437fe1a25e2a84894e248ad2756fcad693 Mon Sep 17 00:00:00 2001 From: Christian McHugh Date: Fri, 29 Mar 2019 17:54:42 +0000 Subject: [PATCH] only process strings --- salt/state.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/salt/state.py b/salt/state.py index 23f4d748defe..f1dbd00af012 100644 --- a/salt/state.py +++ b/salt/state.py @@ -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)