Merge pull request #18667 from wanyaoqi/automated-cherry-pick-of-#18665-upstream-master

Automated cherry pick of #18665: fix(regin): instance snapshot create guest fill os arch
This commit is contained in:
Zexi Li
2023-11-14 14:47:37 +08:00
committed by GitHub
+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