Skip to content

Commit 674a8b2

Browse files
authored
backward compatible with old yavirt (#576)
1 parent f1cc9e2 commit 674a8b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/virt/virt.go

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const (
3030
GRPCPrefixKey = "virt-grpc://"
3131
// ImageUserKey indicates the image's owner
3232
ImageUserKey = "ImageUser"
33+
// DmiUUIDKey indicates the key within deploy info.
34+
DmiUUIDKey = "DMIUUID"
3335
// Type indicate type
3436
Type = "virt"
3537
)
@@ -192,6 +194,7 @@ func (v *Virt) VirtualizationCreate(ctx context.Context, opts *enginetypes.Virtu
192194
ImageUser: opts.Labels[ImageUserKey],
193195
Volumes: vols,
194196
Labels: opts.Labels,
197+
DmiUUID: opts.Labels[DmiUUIDKey],
195198
AncestorID: opts.AncestorWorkloadID,
196199
Cmd: opts.Cmd,
197200
Lambda: opts.Lambda,

0 commit comments

Comments
 (0)