code: def get_state(self, sls, saltenv, cachedir=None):
          '''
          Get a state file from the master and store it in the local minion
          cache; return the location of the file
          '''
          if '.' in sls:
              sls = sls.replace('.', '/')
          sls_url = salt.utils.url.create(sls + '.sls')
          init_url = salt.utils.url.create(sls + '/init.sls')
          for path in [sls_url, init_url]:
              dest = self.cache_file(path, saltenv, cachedir=cachedir)
              if dest:
                  return {'source': path, 'dest': dest}
          return {f get_state(self, sls, saltenv, cachedir=None):
          '''
          Get a state file from the master and store it in the local minion
          cache; return the location of the file
          '''
          if '.' in sls:
              sls = sls.replace('.', '/')
          sls_url = salt.utils.url.create(sls + '.sls')
          init_url = salt.utils.url.create(sls + '/init.sls')
          for path in [sls_url, init_url]:
              dest = self.cache_file(path, saltenv, cachedir=cachedir)
              if dest:
                  return {'source': path, 'dest': dest}
          return {}
docs: Get a state file from the master and store it in the local minion
          cache; return the location of the file