mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 07:21:37 +00:00
configurator: fix can't load scenario without pci_devs issue
fix can't load scenario without pci_devs issue Tracked-On: #7246 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
080335bbe7
commit
ac9824cd54
@ -1,13 +0,0 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||
monospace;
|
||||
}
|
@ -289,7 +289,13 @@ export class ProgramLayer extends EventBase {
|
||||
}
|
||||
} else {
|
||||
//fix pci_devs is object issue
|
||||
if (vmConfig.hasOwnProperty("pci_devs") && vmConfig.pci_devs.hasOwnProperty("pci_dev") && _.isString(vmConfig.pci_devs.pci_dev)) {
|
||||
if (
|
||||
vmConfig.hasOwnProperty("pci_devs") &&
|
||||
vmConfig.pci_devs != null &&
|
||||
vmConfig.pci_devs.hasOwnProperty("pci_dev") &&
|
||||
vmConfig.pci_devs != null &&
|
||||
_.isString(vmConfig.pci_devs.pci_dev)
|
||||
) {
|
||||
vmConfig.pci_devs.pci_dev = [vmConfig.pci_devs.pci_dev]
|
||||
}
|
||||
this.addVM(vmType, vmConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user