code: def _get_spec(tree_base, spec, template, saltenv='base'):
      '''
      Get the spec file and place it in the SPECS dir
      '''
      spec_tgt = os.path.basename(spec)
      dest = os.path.join(tree_base, 'SPECS', spec_tgt)
      return __salt__['cp.get_url'](
          spec,
          dest,
          saltenv=saltenvf _get_spec(tree_base, spec, template, saltenv='base'):
      '''
      Get the spec file and place it in the SPECS dir
      '''
      spec_tgt = os.path.basename(spec)
      dest = os.path.join(tree_base, 'SPECS', spec_tgt)
      return __salt__['cp.get_url'](
          spec,
          dest,
          saltenv=saltenv)
docs: Get the spec file and place it in the SPECS dir