mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33719 from cachedout/fixup_33653
Catch oserror for race condition
This commit is contained in:
commit
47d668e071
1 changed files with 4 additions and 1 deletions
|
@ -256,7 +256,10 @@ def save_minions(jid, minions, syndic_id=None):
|
|||
|
||||
try:
|
||||
if not os.path.exists(jid_dir):
|
||||
os.makedirs(jid_dir)
|
||||
try:
|
||||
os.makedirs(jid_dir)
|
||||
except OSError:
|
||||
pass
|
||||
serial.dump(minions, salt.utils.fopen(minions_path, 'w+b'))
|
||||
except IOError as exc:
|
||||
log.error(
|
||||
|
|
Loading…
Add table
Reference in a new issue