File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1712,13 +1712,14 @@ function run_phase {
17121712 local mode=$1
17131713 local phase=$2
17141714 if [[ -d $TOP_DIR /extras.d ]]; then
1715- for i in $TOP_DIR /extras.d/* .sh; do
1716- [[ -r $i ]] && source $i $mode $phase
1715+ local extra_plugin_file_name
1716+ for extra_plugin_file_name in $TOP_DIR /extras.d/* .sh; do
1717+ [[ -r $extra_plugin_file_name ]] && source $extra_plugin_file_name $mode $phase
17171718 # NOTE(sdague): generate a big warning about using
17181719 # extras.d in an unsupported way which will let us track
17191720 # unsupported usage in the gate.
17201721 local exceptions=" 50-ironic.sh 60-ceph.sh 80-tempest.sh"
1721- local extra=$( basename $i )
1722+ local extra=$( basename $extra_plugin_file_name )
17221723 if [[ ! ( $exceptions =~ " $extra " ) ]]; then
17231724 deprecated " extras.d support is being removed in Mitaka-1"
17241725 deprecated " jobs for project $extra will break after that point"
You can’t perform that action at this time.
0 commit comments