Add argument to isdir()

This commit is contained in:
Joseph Hall 2015-12-30 12:33:23 -07:00
parent dce64c0868
commit c70257163b

View File

@ -145,7 +145,7 @@ def apply_(path, id_=None, config=None, approve_key=True, install=True,
'configuring as {0}'.format(id_)) 'configuring as {0}'.format(id_))
minion_config = salt.config.minion_config(cfg_files['config']) minion_config = salt.config.minion_config(cfg_files['config'])
pki_dir = minion_config['pki_dir'] pki_dir = minion_config['pki_dir']
if not os.path.isdir(): if not os.path.isdir(os.path.join(mpt, pki_dir)):
__salt__['file.makedirs']( __salt__['file.makedirs'](
os.path.join(mpt, pki_dir) os.path.join(mpt, pki_dir)
) )