code: def salt_refs(data, ret=None):
      '''
      Pull salt file references out of the states
      '''
      proto = 'salt://'
      if ret is None:
          ret = []
      if isinstance(data, six.string_types):
          if data.startswith(proto) and data not in ret:
              ret.append(data)
      if isinstance(data, list):
          for comp in data:
              salt_refs(comp, ret)
      if isinstance(data, dict):
          for comp in data:
              salt_refs(data[comp], ret)
      return ref salt_refs(data, ret=None):
      '''
      Pull salt file references out of the states
      '''
      proto = 'salt://'
      if ret is None:
          ret = []
      if isinstance(data, six.string_types):
          if data.startswith(proto) and data not in ret:
              ret.append(data)
      if isinstance(data, list):
          for comp in data:
              salt_refs(comp, ret)
      if isinstance(data, dict):
          for comp in data:
              salt_refs(data[comp], ret)
      return ret
docs: Pull salt file references out of the states