mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36305 from gtmanfred/2016.3
cache query args with url as well
This commit is contained in:
commit
a8a3a9f021
1 changed files with 6 additions and 1 deletions
|
@ -803,12 +803,17 @@ class Client(object):
|
|||
elif not os.path.isabs(cachedir):
|
||||
cachedir = os.path.join(self.opts['cachedir'], cachedir)
|
||||
|
||||
if url_data.query is not None:
|
||||
file_name = '-'.join([url_data.path, url_data.query])
|
||||
else:
|
||||
file_name = url_data.path
|
||||
|
||||
return salt.utils.path_join(
|
||||
cachedir,
|
||||
'extrn_files',
|
||||
saltenv,
|
||||
netloc,
|
||||
url_data.path
|
||||
file_name
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue