Skip to content
Snippets Groups Projects
Commit c9086d7d authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "dev: Improve error checking for config check functions"

parents 79ebd524 89fc4fa2
No related branches found
No related tags found
No related merge requests found
...@@ -233,17 +233,22 @@ function upgrade_kayobe_venv { ...@@ -233,17 +233,22 @@ function upgrade_kayobe_venv {
function is_deploy_image_built_locally { 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 controllers[0] --var-name ipa_build_images)
[[ $ipa_build_images =~ ^true$ ]] to_bool "$ipa_build_images"
} }
function is_ironic_enabled { function is_ironic_enabled {
ironic_enabled=$(kayobe configuration dump --host controllers[0] --var-name kolla_enable_ironic) ironic_enabled=$(kayobe configuration dump --host controllers[0] --var-name kolla_enable_ironic)
[[ $ironic_enabled =~ ^true$ ]] to_bool "$ironic_enabled"
} }
function is_overcloud_host_image_built_by_dib { 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 controllers[0] --var-name overcloud_dib_build_host_images)
[[ $overcloud_dib_build_host_images =~ ^true$ ]] to_bool "$overcloud_dib_build_host_images"
}
function is_cinder_enabled {
flag="$(run_kayobe configuration dump --host controllers[0] --var-name kolla_enable_cinder)"
to_bool "$flag"
} }
function environment_setup { function environment_setup {
...@@ -872,11 +877,6 @@ function to_bool { ...@@ -872,11 +877,6 @@ function to_bool {
fi fi
} }
function is_cinder_enabled {
flag="$(run_kayobe configuration dump --host controllers[0] --var-name kolla_enable_cinder)"
to_bool "$flag"
}
function configure_iptables { function configure_iptables {
# NOTE(wszumski): adapted from the ironic devstack plugin, see: # NOTE(wszumski): adapted from the ironic devstack plugin, see:
# https://github.com/openstack/ironic/blob/36e87dc5b472d79470b783fbba9ce396e3cbb96e/devstack/lib/ironic#L2132 # https://github.com/openstack/ironic/blob/36e87dc5b472d79470b783fbba9ce396e3cbb96e/devstack/lib/ironic#L2132
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment