mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #34400 from cachedout/issue_34379
Fix uninitialized value
This commit is contained in:
commit
b3875f397d
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue