Fix uninitialized value

Closes #34379
This commit is contained in:
Mike Place 2016-06-30 13:05:02 -06:00
parent 06f249901a
commit b413f05a4f

View file

@ -49,6 +49,7 @@ def sync(opts, form, saltenv=None):
source = salt.utils.url.create('_' + form)
mod_dir = os.path.join(opts['extension_modules'], '{0}'.format(form))
cumask = os.umask(0o77)
touched = False
try:
if not os.path.isdir(mod_dir):
log.info('Creating module dir \'{0}\''.format(mod_dir))