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 committed by rallytime
parent 55e7927077
commit 86029e7369

View File

@ -221,7 +221,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'])