mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set salt:// correct paths
This commit is contained in:
parent
954ced77b9
commit
660bac9a3a
1 changed files with 5 additions and 1 deletions
|
@ -350,6 +350,7 @@ class FileClient(object):
|
|||
'''
|
||||
Make sure that this path is intended for the salt master and trim it
|
||||
'''
|
||||
print path
|
||||
if not path.startswith('salt://'):
|
||||
raise MinionError('Unsupported path')
|
||||
return path[7:]
|
||||
|
@ -434,7 +435,10 @@ class FileClient(object):
|
|||
'''
|
||||
if sls.count('.'):
|
||||
sls = sls.replace('.', '/')
|
||||
for path in [sls + '.sls', os.path.join(sls, 'init.sls')]:
|
||||
for path in [
|
||||
'salt://' + sls + '.sls',
|
||||
os.path.join('salt://', sls, 'init.sls')
|
||||
]:
|
||||
dest = self.cache_file(path, env)
|
||||
if dest:
|
||||
return dest
|
||||
|
|
Loading…
Add table
Reference in a new issue