From 25b6c710dbb5d9b7d581d9953c6d256c6d3bb079 Mon Sep 17 00:00:00 2001 From: Abhay Krishna Date: Mon, 16 Oct 2023 17:07:42 -0700 Subject: [PATCH] Fix output image glob pattern for CloudStack image builds (#2565) --- projects/aws/image-builder/builder/builder.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/aws/image-builder/builder/builder.go b/projects/aws/image-builder/builder/builder.go index f55915e081..cf1a547e49 100644 --- a/projects/aws/image-builder/builder/builder.go +++ b/projects/aws/image-builder/builder/builder.go @@ -236,7 +236,7 @@ func (b *BuildOptions) BuildImage() { var outputImageGlobPattern string switch b.Os { case RedHat: - outputImageGlobPattern = "output/rhel-*/rhel-*" + outputImageGlobPattern = "output/rhel-*" buildCommand = fmt.Sprintf("make -C %s local-build-cloudstack-redhat-%s", imageBuilderProjectPath, b.OsVersion) commandEnvVars = append(commandEnvVars, fmt.Sprintf("%s=%s", rhelUsernameEnvVar, b.CloudstackConfig.RhelUsername), @@ -260,6 +260,8 @@ func (b *BuildOptions) BuildImage() { } outputArtifactPath = filepath.Join(cwd, fmt.Sprintf("%s.qcow2", b.Os)) + + log.Printf("Image Build Successful\n Please find the output artifact at %s\n", outputArtifactPath) } else if b.Hypervisor == AMI { amiConfigFile := filepath.Join(imageBuilderProjectPath, packerAMIConfigFile)