mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Trim the env base off the dest file path in the s3fs fileserver
This commit is contained in:
parent
aa96665a2b
commit
5d8ba4aac2
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user