log data disks in images

This commit is contained in:
Paul Meyer 2020-04-29 22:10:48 +00:00
parent f0cd60b5fa
commit 4c96847683
2 changed files with 4 additions and 0 deletions

View File

@ -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())},

View File

@ -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())},