def salt_refs(data):
 proto = 'salt://'
 ret = []
 if isinstance(data, str):
  if data.startswith(proto):
   return [data]
 if isinstance(data, list):
  for comp in data:
   if isinstance(comp, str):
    if comp.startswith(proto):
     ret.append(comp)
 return ret

def salt_refs ( data ) : proto = 'salt://' ret = [ ] if isinstance ( data , str ) : if data . startswith ( proto ) : return [ data ] if isinstance ( data , list ) : for comp in data : if isinstance ( comp , str ) : if comp . startswith ( proto ) : ret . append ( comp ) return ret
pull salt file references out of the states .