mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #10113 from kaithar/feature/Clean-pr-10036
[Clean] Strip leading path separator characters in a portable way.
This commit is contained in:
commit
dbed6fe4b0
@ -1645,7 +1645,7 @@ def get_id(root_dir=None, minion_id=False, cache=True):
|
||||
|
||||
# Check for cached minion ID
|
||||
id_cache = os.path.join(root_dir,
|
||||
config_dir.lstrip('\\'),
|
||||
config_dir.lstrip(os.path.sep),
|
||||
'minion_id')
|
||||
|
||||
if cache:
|
||||
|
Loading…
Reference in New Issue
Block a user