Skip to content

Commit eabc6f1

Browse files
committed
Log when failing to get the source name
1 parent d8be7af commit eabc6f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/azure/arm/step_get_source_image_name.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (s *StepGetSourceImageName) Run(ctx context.Context, state multistep.StateB
5656

5757
image, err := s.getGalleryVersion(ctx)
5858
if err != nil {
59-
log.Println("[TRACE] unable to derive managed image URL for shared gallery version image")
59+
s.say(fmt.Sprintf("Failed to fetch source gallery image from Azure API, HCP Packer ancestry will not populate ancestry: %s", err.Error()))
6060
s.GeneratedData.Put("SourceImageName", "ERR_SOURCE_IMAGE_NAME_NOT_FOUND")
6161
return multistep.ActionContinue
6262
}

0 commit comments

Comments
 (0)