def _get_spec(tree_base, spec, template, saltenv='base'):
 spec_tgt = os.path.basename(spec)
 dest = os.path.join(tree_base, spec_tgt)
 return __salt__['cp.get_url'](spec, dest, saltenv=saltenv)

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