Skip to content

Commit

Permalink
backward compatible with old yavirt (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceralon authored Apr 13, 2022
1 parent f1cc9e2 commit 674a8b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/virt/virt.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const (
GRPCPrefixKey = "virt-grpc://"
// ImageUserKey indicates the image's owner
ImageUserKey = "ImageUser"
// DmiUUIDKey indicates the key within deploy info.
DmiUUIDKey = "DMIUUID"
// Type indicate type
Type = "virt"
)
Expand Down Expand Up @@ -192,6 +194,7 @@ func (v *Virt) VirtualizationCreate(ctx context.Context, opts *enginetypes.Virtu
ImageUser: opts.Labels[ImageUserKey],
Volumes: vols,
Labels: opts.Labels,
DmiUUID: opts.Labels[DmiUUIDKey],
AncestorID: opts.AncestorWorkloadID,
Cmd: opts.Cmd,
Lambda: opts.Lambda,
Expand Down

0 comments on commit 674a8b2

Please sign in to comment.