| commit | b2503f4692ec25978bdb903eaf0382178fd88ce1 | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Tue Sep 19 01:51:10 2017 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Tue Sep 19 01:51:10 2017 +0000 |
| tree | 14341b70fbd1f29b9ad1f8858ffaa8157059308b | |
| parent | cd06b2ee814f1f9ec363e9476a5fe97305a10152 [diff] | |
| parent | 6bd4924cec73908225e6744b1b00dd86cb39d3ed [diff] |
Merge "Ignore stderr when checking for Python version"
diff --git a/functions-common b/functions-common index 120d378..713d92e 100644 --- a/functions-common +++ b/functions-common
@@ -2083,7 +2083,7 @@ local interp=$1 local version # disable erroring out here, otherwise if python 3 doesn't exist we fail hard. - if [[ -x $(which $interp) ]]; then + if [[ -x $(which $interp 2> /dev/null) ]]; then version=$($interp -c 'import sys; print("%s.%s" % sys.version_info[0:2])') fi echo ${version}