def pillar_format(ret, keys, value):
 if (value is None):
  return ret
 pillar_value = yaml.load(value)
 keyvalue = keys.pop()
 pil = {keyvalue: pillar_value}
 keys.reverse()
 for k in keys:
  pil = {k: pil}
 return dict_merge(ret, pil)

def pillar_format ( ret , keys , value ) : if ( value is None ) : return ret pillar_value = yaml . load ( value ) keyvalue = keys . pop ( ) pil = { keyvalue : pillar_value } keys . reverse ( ) for k in keys : pil = { k : pil } return dict_merge ( ret , pil )
perform data formatting to be used as pillar data and merge it with the current pillar data .