Create parent directories

This commit is contained in:
Pedro Algarvio 2015-01-21 17:17:14 +00:00
parent 18fc519270
commit 82b2b723a1

View File

@ -147,7 +147,7 @@ def returner(load):
hn_dir = os.path.join(jid_dir, load['id'])
try:
os.mkdir(hn_dir)
os.makedirs(hn_dir)
except OSError as err:
if err.errno == errno.EEXIST:
# Minion has already returned this jid and it should be dropped