Revert "cleanup potentially installed older oslo.config"
Icehouse is for long behind our back, so let's remove that hack.
Conflicts:
lib/oslo
This reverts commit db5fadb5cb
.
Change-Id: I06d3b0a8779ba51e05c439832ef3b7dbdc97ded1
This commit is contained in:
parent
e4368c6abb
commit
a89a0dc624
1
clean.sh
1
clean.sh
@ -84,7 +84,6 @@ if [[ -d $TOP_DIR/extras.d ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean projects
|
# Clean projects
|
||||||
cleanup_oslo
|
|
||||||
cleanup_cinder
|
cleanup_cinder
|
||||||
cleanup_glance
|
cleanup_glance
|
||||||
cleanup_keystone
|
cleanup_keystone
|
||||||
|
15
lib/oslo
15
lib/oslo
@ -38,10 +38,6 @@ OSLO_BIN_DIR=$(get_python_exec_prefix)
|
|||||||
|
|
||||||
# install_oslo() - Collect source and prepare
|
# install_oslo() - Collect source and prepare
|
||||||
function install_oslo {
|
function install_oslo {
|
||||||
# TODO(sdague): remove this once we get to Icehouse, this just makes
|
|
||||||
# for a smoother transition of existing users.
|
|
||||||
cleanup_oslo
|
|
||||||
|
|
||||||
git_clone $CLIFF_REPO $CLIFF_DIR $CLIFF_BRANCH
|
git_clone $CLIFF_REPO $CLIFF_DIR $CLIFF_BRANCH
|
||||||
setup_install $CLIFF_DIR
|
setup_install $CLIFF_DIR
|
||||||
|
|
||||||
@ -70,17 +66,6 @@ function install_oslo {
|
|||||||
setup_install $TASKFLOW_DIR
|
setup_install $TASKFLOW_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
# cleanup_oslo() - purge possibly old versions of oslo
|
|
||||||
function cleanup_oslo {
|
|
||||||
# this means we've got an old oslo installed, lets get rid of it
|
|
||||||
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 oslo.config
|
|
||||||
sudo $PIP_CMD uninstall -y oslo.config
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Restore xtrace
|
# Restore xtrace
|
||||||
$XTRACE
|
$XTRACE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user