Merge pull request #34400 from cachedout/issue_34379

Fix uninitialized value
This commit is contained in:
Mike Place 2016-07-01 10:42:55 -07:00 committed by GitHub
commit b3875f397d

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))