Merge "Faster old oslo.config detection"

This commit is contained in:
Jenkins 2013-08-15 13:26:39 +00:00 committed by Gerrit Code Review
commit fa72bc49f0

View File

@ -41,7 +41,7 @@ function install_oslo() {
# cleanup_oslo() - purge possibly old versions of oslo
function cleanup_oslo() {
# this means we've got an old olso installed, lets get rid of it
if find /usr | grep oslo.config | grep -v oslo.config.egg-link > /dev/null; then
if ! python -c 'import oslo.config' 2>/dev/null; then
echo "Found old oslo.config... removing to ensure consistency"
local PIP_CMD=$(get_pip_command)
pip_install olso.config