fix: aws sync os_arch

This commit is contained in:
Qiu Jian
2022-11-30 01:36:32 +08:00
committed by QIU Jian
parent f72b903533
commit 16430d8ef7
+1 -1
View File
@@ -2840,7 +2840,7 @@ func (self *SGuest) syncWithCloudVM(ctx context.Context, userCred mcclient.Token
self.BootOrder = extVM.GetBootOrder()
self.Vga = extVM.GetVga()
self.Vdi = extVM.GetVdi()
if len(self.OsArch) == 0 {
if len(extVM.GetOsArch()) > 0 {
self.OsArch = extVM.GetOsArch()
}
if len(self.OsType) == 0 {