mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Clarify caching location for minion_id
This commit is contained in:
parent
8c091c6451
commit
157f26000f
@ -1645,7 +1645,8 @@ def get_id(root_dir=None, minion_id=False, cache=True):
|
|||||||
with salt.utils.fopen(id_cache) as idf:
|
with salt.utils.fopen(id_cache) as idf:
|
||||||
name = idf.read().strip()
|
name = idf.read().strip()
|
||||||
if name:
|
if name:
|
||||||
log.info('Using cached minion ID: {0}'.format(name))
|
log.info('Using cached minion ID from {0}: {1}'
|
||||||
|
.format(id_cache, name))
|
||||||
return name, False
|
return name, False
|
||||||
except (IOError, OSError):
|
except (IOError, OSError):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user