log data disks in images
This commit is contained in:
parent
f0cd60b5fa
commit
4c96847683
|
@ -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())},
|
||||
|
|
|
@ -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())},
|
||||
|
|
Loading…
Reference in New Issue