Skip to content

Commit

Permalink
fix sanitising of image name
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Nov 6, 2024
1 parent 9bcc95f commit e186713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packer/openstack.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ locals {
git_commit = data.git-commit.cwd-head.hash
timestamp = formatdate("YYMMDD-hhmm", timestamp())
image_version = var.image_version == "auto" ? "${local.timestamp}-${substr(local.git_commit, 0, 8)}" : var.image_version
image_name = replace(var.image_name, '/', '-')
image_name = replace(var.image_name, "/", "-")
}

# Path pointing to root of repository - automatically set by environment variable PKR_VAR_repo_root
Expand Down

0 comments on commit e186713

Please sign in to comment.