get-occ-config.sh: fix handling multiple nodes in a role
When using get-occ-config.sh with a role with a count greater
than 1, the script will now configure all nodes that are of that role
type instead of exiting after only configuring the first.
Previously, the expression ((i++)) evaluated to 0, and when using
arithmetic expansion, causes a rc of 1, which caused the script to exit
after configuring the first node.
Change-Id: I0a39f2b8f1de5302fd426999acfe5043b0361987
Closes-Bug: #1759581
(cherry picked from commit 154879b68d
)
This commit is contained in:
parent
463079b57b
commit
d97fc05d39
|
@ -157,7 +157,7 @@ for role in $OVERCLOUD_ROLES; do
|
|||
ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo systemctl enable os-collect-config
|
||||
fi
|
||||
|
||||
((i++))
|
||||
let i+=1
|
||||
|
||||
done
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
fixes:
|
||||
- When using get-occ-config.sh with a role using a count greater than 1, the
|
||||
script will now configure all nodes that are of that role type instead of
|
||||
exiting after only configuring the first.
|
Loading…
Reference in New Issue