fix(regin): instance snapshot create guest fill os arch

This commit is contained in:
wanyaoqi
2023-11-14 11:17:22 +08:00
parent 71b8f5b93e
commit da9188eef8
+1
View File
@@ -499,6 +499,7 @@ func (self *SInstanceSnapshot) ToInstanceCreateInput(
sourceInput.Secgroups = inputSecgs
}
sourceInput.OsType = self.OsType
sourceInput.OsArch = self.OsArch
sourceInput.InstanceType = self.InstanceType
if len(sourceInput.Networks) == 0 {
sourceInput.Networks = serverConfig.Networks