Merge "Handle string value for LAUNCH_INSTANCE_DEFAULTS"

This commit is contained in:
Zuul 2022-01-10 20:47:58 +00:00 committed by Gerrit Code Review
commit 8e146160e5
1 changed files with 4 additions and 0 deletions

View File

@ -475,7 +475,11 @@ OPENSTACK_CINDER_FEATURES = {
<%- if ! (@instance_options_real.empty?) -%>
LAUNCH_INSTANCE_DEFAULTS = {
<%- @instance_options_real.sort.each do |opt_name,opt_val| -%>
<%- if opt_val.kind_of?(String) -%>
'<%= opt_name -%>': '<%= opt_val -%>',
<%- else -%>
'<%= opt_name -%>': <%= opt_val.to_s.capitalize -%>,
<%-end-%>
<%-end-%>
}
<%-end-%>