CI: Run configuration dump against localhost
Since using the to_bool function in more places in I3a5a43fef9c3d68d0db02be12b9f892c437e513d, we are now more strict about the result of the variable dump. If there are no controllers in the inventory, the result will not be a valid boolean and the to_bool function will exit non-zero. This change fixes the issue by running against localhost, which should always be in the inventory. Change-Id: Idcfd9d335f11f6c4d676033128d207f62b363ee9
This commit is contained in:
parent
14bcaba0a3
commit
0f1f009a85
@ -232,22 +232,22 @@ function upgrade_kayobe_venv {
|
||||
# Deployment
|
||||
|
||||
function is_deploy_image_built_locally {
|
||||
ipa_build_images=$(kayobe configuration dump --host controllers[0] --var-name ipa_build_images)
|
||||
ipa_build_images=$(kayobe configuration dump --host localhost --var-name ipa_build_images)
|
||||
to_bool "$ipa_build_images"
|
||||
}
|
||||
|
||||
function is_ironic_enabled {
|
||||
ironic_enabled=$(kayobe configuration dump --host controllers[0] --var-name kolla_enable_ironic)
|
||||
ironic_enabled=$(kayobe configuration dump --host localhost --var-name kolla_enable_ironic)
|
||||
to_bool "$ironic_enabled"
|
||||
}
|
||||
|
||||
function is_overcloud_host_image_built_by_dib {
|
||||
overcloud_dib_build_host_images=$(kayobe configuration dump --host controllers[0] --var-name overcloud_dib_build_host_images)
|
||||
overcloud_dib_build_host_images=$(kayobe configuration dump --host localhost --var-name overcloud_dib_build_host_images)
|
||||
to_bool "$overcloud_dib_build_host_images"
|
||||
}
|
||||
|
||||
function is_cinder_enabled {
|
||||
flag="$(run_kayobe configuration dump --host controllers[0] --var-name kolla_enable_cinder)"
|
||||
flag="$(run_kayobe configuration dump --host localhost --var-name kolla_enable_cinder)"
|
||||
to_bool "$flag"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user