Merge "Testing adding properties to flavors"

This commit is contained in:
Zuul 2018-09-06 21:48:20 +00:00 committed by Gerrit Code Review
commit 9902158a7a
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@ openstack flavor create --id auto \
openstack flavor set \
--property "cpu_arch"="x86_64" \
--property "capabilities:boot_option"="local" \
--property "capabilities:profile"="{{ name }}" oooq_{{ name }}
--property "capabilities:profile"="{{ name }}" oooq_{{ name }} \
--property "resources:CUSTOM_BAREMETAL"="1" \
--property "resources:DISK_GB"="0" \
--property "resources:MEMORY_MB"="0" \
--property "resources:VCPU"="0"
{% for propname,propval in (flavor.properties|default({})).items() %}
openstack flavor set --property "{{ propname }}={{ propval }}" oooq_{{ name }}
{% endfor %}