[PATCH] configurator creates duplicate VM name


Chuang Ke
 

fix VM duplicate name when create new VM

Signed-off-by: Chuang-Ke <chuangx.ke@...>
Tracked-On: #7920
---
.../configurator/packages/configurator/src/pages/Config.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue
index 55e5c6ed7..e8bd417b3 100644
--- a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue
+++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue
@@ -228,7 +228,7 @@ export default {
let haveService = false;
this.scenario.vm.map((vmConfig) => {
let vmID = vmConfig['@id'];
- if (vmID > maxVMID) {
+ if (vmID >= maxVMID) {
maxVMID = vmID
}
if (vmConfig['load_order'] === 'SERVICE_VM') {
--
2.25.1

Join acrn-dev@lists.projectacrn.org to automatically receive all group messages.