Merge "Add "capabilities: boot_option:local" to flavor creation"

This commit is contained in:
Jenkins 2015-06-09 10:46:26 +00:00 committed by Gerrit Code Review
commit ac95523881

View File

@ -77,7 +77,10 @@ class Flavor(object):
@classmethod
def create(cls, request, name, memory, vcpus, disk, cpu_arch,
kernel_image_id=None, ramdisk_image_id=None):
extras_dict = {'cpu_arch': cpu_arch}
extras_dict = {
'cpu_arch': cpu_arch,
'capabilities:boot_option': 'local',
}
if kernel_image_id is not None:
extras_dict['baremetal:deploy_kernel_id'] = kernel_image_id
if ramdisk_image_id is not None: