Skip to content

Commit 9fc3ba4

Browse files
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
1 parent 1f7631d commit 9fc3ba4

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

extras.d/50-ironic.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# ironic.sh - Devstack extras script to install ironic
22

3+
# NOTE(jroll) this is used for the transition to a devstack plugin in
4+
# the ironic tree.
5+
IRONIC_USING_PLUGIN=$(trueorfalse False IRONIC_USING_PLUGIN)
6+
if [[ "$IRONIC_USING_PLUGIN" == "True" ]] ; then
7+
return 0
8+
fi
9+
310
if is_service_enabled ir-api ir-cond; then
411
if [[ "$1" == "source" ]]; then
512
# Initial source

lib/ironic

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ _PIPEFAIL_IRONIC=$(set +o | grep pipefail)
2626
set +o xtrace
2727
set +o pipefail
2828

29+
# NOTE(jroll) this is used for the transition to a devstack plugin in
30+
# the ironic tree.
31+
IRONIC_USING_PLUGIN=$(trueorfalse False IRONIC_USING_PLUGIN)
32+
if [[ "$IRONIC_USING_PLUGIN" == "True" ]] ; then
33+
return 0
34+
fi
35+
2936
# Defaults
3037
# --------
3138

0 commit comments

Comments
 (0)