feat: set default os_type
Set the image's os_type=windows when the image's os_distro=windows Change-Id: I78caf5d172ee51b6f4f6194901f3de4d759c960e
This commit is contained in:
parent
482e4ba321
commit
3c5aeaa945
@ -347,12 +347,14 @@ export class CreateForm extends FormAction {
|
||||
owner,
|
||||
usage_type = 'common',
|
||||
members,
|
||||
os_distro,
|
||||
...rest
|
||||
} = values;
|
||||
const body = {
|
||||
visibility: visibility || 'private',
|
||||
container_format: 'bare',
|
||||
usage_type,
|
||||
os_distro,
|
||||
...rest,
|
||||
};
|
||||
if (min_ram) {
|
||||
@ -367,6 +369,9 @@ export class CreateForm extends FormAction {
|
||||
if (this.isAdminPage) {
|
||||
body.owner = owner.selectedRowKeys[0];
|
||||
}
|
||||
if (os_distro === 'windows') {
|
||||
body.os_type = 'windows';
|
||||
}
|
||||
const mems = visibility === 'shared' ? members.selectedRowKeys : [];
|
||||
const config = this.getUploadRequestConf();
|
||||
const actualFile = uploadType === 'file' ? file : url;
|
||||
|
Loading…
Reference in New Issue
Block a user