From 1f767eab14cd8c4f62e83ca664b3d4ac9a969196 Mon Sep 17 00:00:00 2001 From: Abhay Krishna Arunachalam Date: Fri, 13 Oct 2023 16:52:05 -0700 Subject: [PATCH] Fix output image glob pattern for CloudStack image builds --- 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)