Skip to content

Commit

Permalink
ostree: allow passing any ostree source secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and achilleas-k committed Nov 26, 2024
1 parent a03879c commit e8bf4da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/osbuild/ostree_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func NewOSTreeSourceItem(commit ostree.CommitSpec) *OSTreeSourceItem {
item := new(OSTreeSourceItem)
item.Remote.URL = commit.URL
item.Remote.ContentURL = commit.ContentURL
if commit.Secrets == "org.osbuild.rhsm.consumer" {
if commit.Secrets != "" {
item.Remote.Secrets = &OSTreeSourceRemoteSecrets{
Name: "org.osbuild.rhsm.consumer",
Name: commit.Secrets,
}
}
return item
Expand Down

0 comments on commit e8bf4da

Please sign in to comment.