mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
virtualenv: better error messages when creation fails
This commit is contained in:
parent
0d3c2d549e
commit
b2913acc48
1 changed files with 6 additions and 1 deletions
|
@ -162,7 +162,12 @@ def managed(name,
|
|||
use_vt=use_vt,
|
||||
)
|
||||
|
||||
ret['result'] = _ret['retcode'] == 0
|
||||
if _ret['retcode'] != 0:
|
||||
ret['result'] = False
|
||||
ret['comment'] = _ret['stdout'] + _ret['stderr']
|
||||
return ret
|
||||
|
||||
ret['result'] = True
|
||||
ret['changes']['new'] = __salt__['cmd.run_stderr'](
|
||||
'{0} -V'.format(venv_py)).strip('\n')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue