Skip to content

Commit d60ef1f

Browse files
committed
fix: use openstack as hcp metadata provider name
Previously was using the default value which had the 'mitchellh.' prefix
1 parent 648f16b commit d60ef1f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

builder/openstack/artifact.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (a *Artifact) State(name string) any {
6565
log.Printf("[DEBUG] error encountered when creating a registry image %v", err)
6666
return nil
6767
}
68+
img.ProviderName = "openstack"
6869
return img
6970

7071
}

builder/openstack/artifact_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestArtifactState_StateData(t *testing.T) {
7070
func TestArtifactState_hcpPackerRegistryMetadata(t *testing.T) {
7171
artifact := &Artifact{
7272
ImageId: "foo",
73-
BuilderIdValue: "openstack",
73+
BuilderIdValue: "mitchellh.openstack",
7474
SourceImage: "bar",
7575
Region: "mordor-7",
7676
}

0 commit comments

Comments
 (0)