Ironic: add flag for using plugin
This adds a flag to skip ironic code if the ironic devstack plugin is in use. This flag will be set to true in ironic's devstack plugin to indicate that the plugin should be in control, rather than devstack. This is for the transition period only, and will be removed with the rest of the ironic code in the devstack tree, once the gate is configured to use the ironic plugin. Change-Id: Id01d97fd13fa9f866d645ec5077834ddb78b2b89
This commit is contained in:
parent
1f7631dce6
commit
9fc3ba408a
@ -1,5 +1,12 @@
|
||||
# ironic.sh - Devstack extras script to install ironic
|
||||
|
||||
# NOTE(jroll) this is used for the transition to a devstack plugin in
|
||||
# the ironic tree.
|
||||
IRONIC_USING_PLUGIN=$(trueorfalse False IRONIC_USING_PLUGIN)
|
||||
if [[ "$IRONIC_USING_PLUGIN" == "True" ]] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
if is_service_enabled ir-api ir-cond; then
|
||||
if [[ "$1" == "source" ]]; then
|
||||
# Initial source
|
||||
|
@ -26,6 +26,13 @@ _PIPEFAIL_IRONIC=$(set +o | grep pipefail)
|
||||
set +o xtrace
|
||||
set +o pipefail
|
||||
|
||||
# NOTE(jroll) this is used for the transition to a devstack plugin in
|
||||
# the ironic tree.
|
||||
IRONIC_USING_PLUGIN=$(trueorfalse False IRONIC_USING_PLUGIN)
|
||||
if [[ "$IRONIC_USING_PLUGIN" == "True" ]] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Defaults
|
||||
# --------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user