mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
host: fix isImportFromLibvirt (#13933)
should check __origin_id not getOriginId Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>
This commit is contained in:
@@ -189,7 +189,7 @@ func (s *SKVMGuestInstance) getOriginId() string {
|
||||
}
|
||||
|
||||
func (s *SKVMGuestInstance) isImportFromLibvirt() bool {
|
||||
return len(s.getOriginId()) > 0
|
||||
return s.Desc.Contains("metadata", "__origin_id")
|
||||
}
|
||||
|
||||
func (s *SKVMGuestInstance) GetPid() int {
|
||||
|
||||
Reference in New Issue
Block a user