mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
missed a few situational issues in source handling
This commit is contained in:
parent
7d12264110
commit
0583436de2
@ -470,7 +470,7 @@ def managed(name,
|
||||
# to check, if it is salt then check the master list
|
||||
if len(single) != 1:
|
||||
continue
|
||||
single_src = single[single.keys()[0]]
|
||||
single_src = single.keys()[0]
|
||||
single_hash = single[single_src]
|
||||
proto = urlparse.urlparse(single_src).scheme
|
||||
if proto == 'salt':
|
||||
@ -478,7 +478,7 @@ def managed(name,
|
||||
source = single_src
|
||||
break
|
||||
elif proto.startswith('http') or proto == 'ftp':
|
||||
dest = temptile.mkstemp()[1]
|
||||
dest = tempfile.mkstemp()[1]
|
||||
fn_ = __salt__['cp.get_url'](single_src, dest)
|
||||
os.remove(fn_)
|
||||
if fn_:
|
||||
|
Loading…
Reference in New Issue
Block a user