mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Add argument to isdir()
This commit is contained in:
parent
dce64c0868
commit
c70257163b
@ -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)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user