mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Strip user:pass from cached URLs
This commit is contained in:
parent
ec60f9c721
commit
eae3a435dd
1 changed files with 3 additions and 0 deletions
|
@ -807,6 +807,9 @@ class Client(object):
|
|||
else:
|
||||
netloc = url_data.netloc
|
||||
|
||||
# Strip user:pass from URLs
|
||||
netloc = netloc.split('@')[-1]
|
||||
|
||||
if cachedir is None:
|
||||
cachedir = self.opts['cachedir']
|
||||
elif not os.path.isabs(cachedir):
|
||||
|
|
Loading…
Add table
Reference in a new issue