Commit ed636578 authored by Ryo Yamashita's avatar Ryo Yamashita Committed by Yas Naoi
Browse files

Issue #3317924 by Ryo Yamashita, yas: Add getting instance type's list for...

Issue #3317924 by Ryo Yamashita, yas: Add getting instance type's list for editing the OpenStack launch template in the Cloud module
parent d2328df1
Loading
Loading
Loading
Loading
+4 −4
Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/templates/form/openstack/launch_template.ts: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -30,11 +30,11 @@ const OPENSTACK_CLOUD_LAUNCH_TEMPLATE: EntityFormTemplate[] = [
            type: 'textarea', labelName: 'Description', name: 'field_description',
            defaultValue: ''
          },
          // TODO: Add /instance_types
          {
            type: 'select', labelName: 'Flavor', name: 'field_instance_type',
            url: '/cloud_dashboard/openstack/{cloud_context}/instance_types',
            defaultValue: '', required: true
            type: 'join', labelName: 'Flavor', name: 'field_instance_type', info: {
              entityTypeId: 'openstack_flavor',
              keyColumn: 'name',
            }, defaultValue: '', required: true
          },
          {
            type: 'boolean', labelName: 'Test only', name: 'field_test_only',
+0 −12
Changes for modules/cloud_dashboard/cloud_dashboard/src/pages/EntityViewPage.tsx: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -30,12 +30,6 @@ const CreateButtonGroup = ({ menuTemplate, cloudContext }: {

  switch (menuTemplate.cloudServiceProvider) {
    case 'aws_cloud':
      switch (menuTemplate.entityName) {
        case 'instance':
          return <></>;
        default:
          break;
      }
      break;
    case 'k8s':
      switch (menuTemplate.entityName) {
@@ -50,12 +44,6 @@ const CreateButtonGroup = ({ menuTemplate, cloudContext }: {
      }
      break;
    case 'openstack':
      switch (menuTemplate.entityName) {
        case 'instance':
          return <></>;
        default:
          break;
      }
      break;
    case 'vmware':
      switch (menuTemplate.entityName) {