Merge "Fix bashate warning in devstack plugin"

This commit is contained in:
Jenkins 2017-01-11 16:04:34 +00:00 committed by Gerrit Code Review
commit c7781fccd5

View File

@ -522,7 +522,7 @@ function _generate_pdu_ports {
port_config=()
for vm_name in $(_ironic_bm_vm_names); do
port_config+=("${pdu_port_number}:${vm_name}")
(( pdu_port_number++ ))
pdu_port_number=$(( pdu_port_number + 1 ))
done
echo ${port_config[*]} | tr ' ' ','
}