Skip to content

Commit 95d4226

Browse files
committed
make i local
This prevents bleed out of the i variable to other functions that might call this inside their own iteration loop. Change-Id: I42d0c287a6f4bb24ae3871de9abb7e0de98a8462
1 parent 64be321 commit 95d4226

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/ironic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ function wait_for_nova_resources {
559559
# timing out.
560560
local resource=$1
561561
local expected_count=$2
562+
local i
562563
echo_summary "Waiting 2 minutes for Nova resource tracker to pick up $resource >= $expected_count"
563564
for i in $(seq 1 120); do
564565
if [ $(nova hypervisor-stats | grep " $resource " | get_field 2) -ge $expected_count ]; then

0 commit comments

Comments
 (0)