fix: fix ephemeral when create flavor
Make ephemeral mandatory when category has ephemeral Change-Id: Iedb909872d28c97df288c8129d0477a4a972c82b
This commit is contained in:
parent
e05154667f
commit
5495f1f16f
@ -378,6 +378,7 @@ export class ParamSetting extends Base {
|
|||||||
type: 'input-int',
|
type: 'input-int',
|
||||||
min: 0,
|
min: 0,
|
||||||
hidden: !hasEphemeral,
|
hidden: !hasEphemeral,
|
||||||
|
required: hasEphemeral,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ephemeralTmp',
|
name: 'ephemeralTmp',
|
||||||
|
@ -132,7 +132,7 @@ export class StepCreate extends StepAction {
|
|||||||
};
|
};
|
||||||
const isPublic = accessType === 'public';
|
const isPublic = accessType === 'public';
|
||||||
body['os-flavor-access:is_public'] = isPublic;
|
body['os-flavor-access:is_public'] = isPublic;
|
||||||
if (categoryHasEphemeral) {
|
if (categoryHasEphemeral(category)) {
|
||||||
body['OS-FLV-EXT-DATA:ephemeral'] = ephemeral;
|
body['OS-FLV-EXT-DATA:ephemeral'] = ephemeral;
|
||||||
}
|
}
|
||||||
const properties = this.getProperties(architecture, category, settings);
|
const properties = this.getProperties(architecture, category, settings);
|
||||||
|
Loading…
Reference in New Issue
Block a user