def _normalize_server_settings(**settings):
 ret = dict()
 settings = salt.utils.clean_kwargs(**settings)
 for setting in settings:
  if isinstance(settings[setting], dict):
   _LOG.debug('Fixing value: %s', settings[setting])
   value_from_key = next(six.iterkeys(settings[setting]))
   ret[setting] = '{{{0}}}'.format(value_from_key)
  else:
   ret[setting] = settings[setting]
 return ret

def _normalize_server_settings ( ** settings ) : ret = dict ( ) settings = salt . utils . clean_kwargs ( ** settings ) for setting in settings : if isinstance ( settings [ setting ] , dict ) : _LOG . debug ( 'Fixing value: %s' , settings [ setting ] ) value_from_key = next ( six . iterkeys ( settings [ setting ] ) ) ret [ setting ] = '{{{0}}}' . format ( value_from_key ) else : ret [ setting ] = settings [ setting ] return ret
convert setting values that had been improperly converted to a dict back to a string .