def _jid_dir(jid): ''' Return the jid_dir for the given job id ''' if six.PY3: jhash = getattr(hashlib, __opts__['hash_type'])( jid.encode('utf-8')).hexdigest() else: jhash = getattr(hashlib, __opts__['hash_type'])(str(jid)).hexdigest() return os.path.join(_job_dir(), jhash[:2], jhash[2:])
def _jid_dir(jid): ''' Return the jid_dir for the given job id ''' if six.PY3: jhash = getattr(hashlib, __opts__['hash_type'])(jid.encode('utf-8')).hexdigest() else: jhash = getattr(hashlib, __opts__['hash_type'])(str(jid)).hexdigest() return os.path.join(_job_dir(), jhash[:2], jhash[2:])