mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
commit
824cc34a0e
@ -50,7 +50,7 @@ def _get_spec(tree_base, spec, template, saltenv='base'):
|
|||||||
'''
|
'''
|
||||||
spec_tgt = os.path.basename(spec)
|
spec_tgt = os.path.basename(spec)
|
||||||
dest = os.path.join(tree_base, 'SPECS', spec_tgt)
|
dest = os.path.join(tree_base, 'SPECS', spec_tgt)
|
||||||
return __salt__['cp.get_file'](
|
return __salt__['cp.get_url'](
|
||||||
spec,
|
spec,
|
||||||
dest,
|
dest,
|
||||||
saltenv=saltenv,
|
saltenv=saltenv,
|
||||||
@ -65,7 +65,7 @@ def _get_src(tree_base, source, saltenv='base'):
|
|||||||
sbase = os.path.basename(source)
|
sbase = os.path.basename(source)
|
||||||
dest = os.path.join(tree_base, 'SOURCES', sbase)
|
dest = os.path.join(tree_base, 'SOURCES', sbase)
|
||||||
if parsed.scheme:
|
if parsed.scheme:
|
||||||
lsrc = __salt__['cp.get_file'](source, dest, saltenv=saltenv)
|
lsrc = __salt__['cp.get_url'](source, dest, saltenv=saltenv)
|
||||||
else:
|
else:
|
||||||
shutil.copy(source, dest)
|
shutil.copy(source, dest)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user