Merge pull request #8008 from UtahDave/develop

slice the string. Don't use lstrip incorrectly
This commit is contained in:
Colton Myers 2013-10-21 15:03:36 -07:00
commit d02a439062

View File

@ -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(