mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix use of undefined cmd when install of boostrap script fails
See PR #25465.
This commit is contained in:
parent
86118f4a7b
commit
170eb52cc4
1 changed files with 2 additions and 3 deletions
|
@ -3192,9 +3192,8 @@ def bootstrap(name,
|
|||
rstr = __salt__['test.rand_str']()
|
||||
configdir = '/tmp/.c_{0}'.format(rstr)
|
||||
|
||||
if run(name,
|
||||
'install -m 0700 -d {0}'.format(configdir),
|
||||
python_shell=False):
|
||||
cmd = 'install -m 0700 -d {0}'.format(configdir)
|
||||
if run(name, cmd, python_shell=False):
|
||||
log.error('tmpdir {0} creation failed ({1}'
|
||||
.format(configdir, cmd))
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue