Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-01 04:49:01 -05:00
parent c008507490
commit 132d0ac076
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ func ImportXML(domcfg *libvirtxml.Domain) (*pb.Droplet, []*pb.Event, error) {
d.Hostname = domcfg.Name
d.Uuid = domcfg.UUID
d.StartState = pb.DropletState_OFF
if d.Current == nil {
d.Current = new(pb.Current)
}
d.Current.State = pb.DropletState_UNKNOWN
alle, err := updateDroplet(d, domcfg)