def explode_opts(opts):
 preloads = [('.salt.opts', dict(value=opts))]
 for (key, val) in six.iteritems(opts):
  ukey = key.replace('.', '_')
  preloads.append(('.salt.etc.{0}'.format(ukey), dict(value=val)))
 preloads.append(('.salt.etc.id', dict(value=opts['id'])))
 return preloads

def explode_opts ( opts ) : preloads = [ ( '.salt.opts' , dict ( value = opts ) ) ] for ( key , val ) in six . iteritems ( opts ) : ukey = key . replace ( '.' , '_' ) preloads . append ( ( '.salt.etc.{0}' . format ( ukey ) , dict ( value = val ) ) ) preloads . append ( ( '.salt.etc.id' , dict ( value = opts [ 'id' ] ) ) ) return preloads
explode the opts into a preloads list .