Merge "fix: fix ephemeral when create flavor"

This commit is contained in:
Zuul 2022-08-18 10:15:21 +00:00 committed by Gerrit Code Review
commit 0941bf498e
2 changed files with 2 additions and 1 deletions

View File

@ -378,6 +378,7 @@ export class ParamSetting extends Base {
type: 'input-int',
min: 0,
hidden: !hasEphemeral,
required: hasEphemeral,
},
{
name: 'ephemeralTmp',

View File

@ -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);