Skip to content

Commit

Permalink
Fix output image glob pattern for CloudStack image builds (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Oct 17, 2023
1 parent 72a6e3b commit 25b6c71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/aws/image-builder/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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)

Expand Down

0 comments on commit 25b6c71

Please sign in to comment.