Skip to content

Commit

Permalink
fix profile registry sync for registries without a type (#659)
Browse files Browse the repository at this point in the history
they should default to 'git'
  • Loading branch information
chrnorm authored May 15, 2024
1 parent 14a0416 commit 1486d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/granted/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func GetProfileRegistries(interactive bool) ([]loadedRegistry, error) {
var registries []loadedRegistry
for _, r := range gConf.ProfileRegistry.Registries {

if r.Type == "git" {
if r.Type == "git" || r.Type == "" {
reg, err := gitregistry.New(gitregistry.Opts{
Name: r.Name,
URL: r.URL,
Expand Down

0 comments on commit 1486d22

Please sign in to comment.