mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26111 from alprs/fix-virtualenv_fail_message
Better error messages when virtualenv creation fails
This commit is contained in:
commit
19c42b8b3a
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