Trim the env base off the dest file path in the s3fs fileserver

This commit is contained in:
Joe Hoyle 2015-02-20 21:40:35 -05:00
parent aa96665a2b
commit 5d8ba4aac2

View File

@ -228,7 +228,7 @@ def serve_file(load, fnd):
load['saltenv'],
fnd['path'])
ret['dest'] = fnd['path']
ret['dest'] = _trim_env_off_path( [fnd['path']], load['saltend'] )[0]
with salt.utils.fopen(cached_file_path, 'rb') as fp_:
fp_.seek(load['loc'])