fix: Fix create flavor
fix change access type then create flavor Change-Id: I442b95227182253e38168320486c93345f5b0d8c
This commit is contained in:
parent
ec49fffbe5
commit
64eccc8001
@ -126,7 +126,8 @@ class StepCreate extends StepAction {
|
||||
ram: memoryGb * 1024,
|
||||
disk: 0,
|
||||
};
|
||||
body['os-flavor-access:is_public'] = accessType === 'public';
|
||||
const isPublic = accessType === 'public'
|
||||
body['os-flavor-access:is_public'] = isPublic;
|
||||
if (categoryHasEphemeral) {
|
||||
body['OS-FLV-EXT-DATA:ephemeral'] = ephemeral;
|
||||
}
|
||||
@ -182,7 +183,7 @@ class StepCreate extends StepAction {
|
||||
return this.store.create(
|
||||
body,
|
||||
extraSpecs,
|
||||
accessControl.selectedRowKeys || []
|
||||
!isPublic && (accessControl.selectedRowKeys || [])
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user