mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #40097 from rallytime/merge-2016.11
[2016.11] Merge forward from 2016.3 to 2016.11
This commit is contained in:
commit
baef5009aa
@ -1,5 +1,5 @@
|
||||
{
|
||||
"skipTitle": "Merge forward",
|
||||
"userBlacklist": []
|
||||
"userBlacklist": ["cvrebert", "markusgattol", "olliewalsh"]
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ import os
|
||||
import salt.version
|
||||
import salt.utils
|
||||
|
||||
from salt.exceptions import CommandNotFoundError
|
||||
from salt.exceptions import CommandExecutionError, CommandNotFoundError
|
||||
|
||||
from salt.ext import six
|
||||
log = logging.getLogger(__name__)
|
||||
@ -237,7 +237,12 @@ def managed(name,
|
||||
|
||||
# Populate the venv via a requirements file
|
||||
if requirements or pip_pkgs:
|
||||
before = set(__salt__['pip.freeze'](bin_env=name, user=user, use_vt=use_vt))
|
||||
try:
|
||||
before = set(__salt__['pip.freeze'](bin_env=name, user=user, use_vt=use_vt))
|
||||
except CommandExecutionError as exc:
|
||||
ret['result'] = False
|
||||
ret['comment'] = exc.strerror
|
||||
return ret
|
||||
|
||||
if requirements:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user