Merge "fix: fix ephemeral when create flavor"
This commit is contained in:
commit
0941bf498e
@ -378,6 +378,7 @@ export class ParamSetting extends Base {
|
||||
type: 'input-int',
|
||||
min: 0,
|
||||
hidden: !hasEphemeral,
|
||||
required: hasEphemeral,
|
||||
},
|
||||
{
|
||||
name: 'ephemeralTmp',
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user