mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Provide empty string as default stdout instead of None
This commit is contained in:
parent
f9406b5828
commit
f8380d751e
1 changed files with 1 additions and 1 deletions
|
@ -677,7 +677,7 @@ def installed(name,
|
|||
# already present. Pip1 returns a retcode of 1 (instead of 0 for pip2) if you run
|
||||
# "pip install" without any arguments. See issue #21845.
|
||||
if pip_install_call and \
|
||||
(pip_install_call.get('retcode', 1) == 0 or pip_install_call.get('stdout').startswith(
|
||||
(pip_install_call.get('retcode', 1) == 0 or pip_install_call.get('stdout', '').startswith(
|
||||
'You must give at least one requirement to install')):
|
||||
ret['result'] = True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue