mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Clean up the sls finder
This commit is contained in:
parent
51553b4fca
commit
954ced77b9
1 changed files with 5 additions and 5 deletions
|
@ -433,11 +433,11 @@ class FileClient(object):
|
|||
return the location of the file
|
||||
'''
|
||||
if sls.count('.'):
|
||||
root = sls.replace('.', '/')
|
||||
for path in [root + '.sls', os.path.join(root, 'init.sls')]:
|
||||
dest = self.cache_file(path, env)
|
||||
if dest:
|
||||
return dest
|
||||
sls = sls.replace('.', '/')
|
||||
for path in [sls + '.sls', os.path.join(sls, 'init.sls')]:
|
||||
dest = self.cache_file(path, env)
|
||||
if dest:
|
||||
return dest
|
||||
return False
|
||||
|
||||
def master_opts(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue