Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions builder/openstack/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (a *Artifact) State(name string) any {
log.Printf("[DEBUG] error encountered when creating a registry image %v", err)
return nil
}
img.ProviderName = "openstack"
return img

}
Expand Down
2 changes: 1 addition & 1 deletion builder/openstack/artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestArtifactState_StateData(t *testing.T) {
func TestArtifactState_hcpPackerRegistryMetadata(t *testing.T) {
artifact := &Artifact{
ImageId: "foo",
BuilderIdValue: "openstack",
BuilderIdValue: "mitchellh.openstack",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is this change made to avoid breaking this particular test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is to make sure that it doesn't prepend the mitchellh when fetching the ProviderName (problem with UI openstack icon rendering)

SourceImage: "bar",
Region: "mordor-7",
}
Expand Down
Loading