summaryrefslogtreecommitdiff
path: root/tuskar_ui
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-06-09 10:46:26 +0000
committerGerrit Code Review <review@openstack.org>2015-06-09 10:46:27 +0000
commitac95523881bf9d3c35983ad616f358fdf2286871 (patch)
treeda2d892d274c0af7e0462b4f99c0fb713fee0e44 /tuskar_ui
parent7c40b29298a6330586a73d243be6cd755b4498d0 (diff)
parent521309a71551a0df2a9b8a98eae33abcc726ed6c (diff)
downloadtuskar-ui-ac95523881bf9d3c35983ad616f358fdf2286871.tar.gz
Merge "Add "capabilities: boot_option:local" to flavor creation"
Diffstat (limited to 'tuskar_ui')
-rw-r--r--tuskar_ui/api/flavor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tuskar_ui/api/flavor.py b/tuskar_ui/api/flavor.py
index fc25e7e0..518400cc 100644
--- a/tuskar_ui/api/flavor.py
+++ b/tuskar_ui/api/flavor.py
@@ -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: