Add string comparison for 'IRONIC_DEPLOY_DRIVER'

For ilo drivers, IRONIC_DEPLOY_DRIVER check need to be change.
It was integer comparison supposed to be string comparison.

Closes-Bug:1679944

Change-Id: I3ad04ff36ebe0b4ab3f4a2050f91044dc32a2631
This commit is contained in:
kesper 2017-04-05 05:12:46 -04:00
parent d78b971654
commit aa3ebd6da5

View File

@ -1578,7 +1578,7 @@ function enroll_nodes {
elif is_deployed_by_ilo; then
node_options+=" -i ilo_address=$bmc_address -i ilo_password=$bmc_passwd\
-i ilo_username=$bmc_username"
if [[ $IRONIC_DEPLOY_DRIVER -ne "pxe_ilo" ]]; then
if [[ $IRONIC_DEPLOY_DRIVER != "pxe_ilo" ]]; then
node_options+=" -i ilo_deploy_iso=$IRONIC_DEPLOY_ISO_ID"
fi
elif is_deployed_by_drac; then