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:
Erik Johnson 2014-02-03 13:14:27 -08:00
commit dbed6fe4b0

View File

@ -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: