diff --git a/src/pages/compute/containers/Flavor/actions/StepCreate/ParamSetting.jsx b/src/pages/compute/containers/Flavor/actions/StepCreate/ParamSetting.jsx index 59cd0746..e86011df 100644 --- a/src/pages/compute/containers/Flavor/actions/StepCreate/ParamSetting.jsx +++ b/src/pages/compute/containers/Flavor/actions/StepCreate/ParamSetting.jsx @@ -378,6 +378,7 @@ export class ParamSetting extends Base { type: 'input-int', min: 0, hidden: !hasEphemeral, + required: hasEphemeral, }, { name: 'ephemeralTmp', diff --git a/src/pages/compute/containers/Flavor/actions/StepCreate/index.jsx b/src/pages/compute/containers/Flavor/actions/StepCreate/index.jsx index 14ca9948..3c45a43f 100644 --- a/src/pages/compute/containers/Flavor/actions/StepCreate/index.jsx +++ b/src/pages/compute/containers/Flavor/actions/StepCreate/index.jsx @@ -132,7 +132,7 @@ export class StepCreate extends StepAction { }; const isPublic = accessType === 'public'; body['os-flavor-access:is_public'] = isPublic; - if (categoryHasEphemeral) { + if (categoryHasEphemeral(category)) { body['OS-FLV-EXT-DATA:ephemeral'] = ephemeral; } const properties = this.getProperties(architecture, category, settings);