From 4c96847683232baadd5933a693ff36238a126594 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Wed, 29 Apr 2020 22:10:48 +0000 Subject: [PATCH] log data disks in images --- builder/azure/chroot/step_create_image.go | 2 ++ builder/azure/chroot/step_create_shared_image_version.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/builder/azure/chroot/step_create_image.go b/builder/azure/chroot/step_create_image.go index 58ae20891..a818c4cd7 100644 --- a/builder/azure/chroot/step_create_image.go +++ b/builder/azure/chroot/step_create_image.go @@ -70,6 +70,8 @@ func (s *StepCreateImage) Run(ctx context.Context, state multistep.StateBag) mul var datadisks []compute.ImageDataDisk for lun, resource := range diskset { if lun != -1 { + ui.Say(fmt.Sprintf(" using %q for data disk (lun %d).", resource, lun)) + datadisks = append(datadisks, compute.ImageDataDisk{ Lun: to.Int32Ptr(lun), ManagedDisk: &compute.SubResource{ID: to.StringPtr(resource.String())}, diff --git a/builder/azure/chroot/step_create_shared_image_version.go b/builder/azure/chroot/step_create_shared_image_version.go index 360f45f51..614ad100f 100644 --- a/builder/azure/chroot/step_create_shared_image_version.go +++ b/builder/azure/chroot/step_create_shared_image_version.go @@ -60,6 +60,8 @@ func (s *StepCreateSharedImageVersion) Run(ctx context.Context, state multistep. var datadisks []compute.GalleryDataDiskImage for lun, resource := range snapshotset { if lun != -1 { + ui.Say(fmt.Sprintf(" using %q for data disk (lun %d).", resource, lun)) + datadisks = append(datadisks, compute.GalleryDataDiskImage{ Lun: to.Int32Ptr(lun), Source: &compute.GalleryArtifactVersionSource{ID: to.StringPtr(resource.String())},