Create missing jid dir if it doesn't exist (#33653)

Closes #33554
This commit is contained in:
Mike Place 2016-06-02 13:20:33 -07:00 committed by Nicole Thomas
parent 8a566ff4b9
commit 56c0a42e12

View file

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