mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #8008 from UtahDave/develop
slice the string. Don't use lstrip incorrectly
This commit is contained in:
commit
d02a439062
@ -240,7 +240,7 @@ def cache_file(path, env='base'):
|
||||
_mk_client()
|
||||
if path.startswith('salt://|'):
|
||||
# Strip pipe. Windows doesn't allow pipes in filenames
|
||||
path = 'salt://{0}'.format(path.lstrip('salt://|'))
|
||||
path = 'salt://{0}'.format(path[8:])
|
||||
result = __context__['cp.fileclient'].cache_file(path, env)
|
||||
if not result:
|
||||
log.error(
|
||||
|
Loading…
Reference in New Issue
Block a user