mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
8a566ff4b9
commit
56c0a42e12
1 changed files with 2 additions and 0 deletions
|
@ -255,6 +255,8 @@ def save_minions(jid, minions, syndic_id=None):
|
|||
minions_path = os.path.join(jid_dir, MINIONS_P)
|
||||
|
||||
try:
|
||||
if not os.path.exists(jid_dir):
|
||||
os.makedirs(jid_dir)
|
||||
serial.dump(minions, salt.utils.fopen(minions_path, 'w+b'))
|
||||
except IOError as exc:
|
||||
log.error(
|
||||
|
|
Loading…
Add table
Reference in a new issue