Skip to content

Commit

Permalink
Fix federation auto-discovery bug
Browse files Browse the repository at this point in the history
That I'm aware of, nobody has encountered this bug yet. I just happened to notice it
when reading through the file. I'm 99% sure the previous code was incorrect and would
result in autodiscovery not being run if only the "DirectorUrl" was set, resulting
in no valid NamespaceUrl.
  • Loading branch information
jhiemstrawisc committed Sep 28, 2023
1 parent 3ff7858 commit bbf3dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func DiscoverFederation() error {
}
log.Debugln("Federation URL:", federationStr)
curDirectorURL := viper.GetString("DirectorURL")
curNamespaceURL := viper.GetString("DirectorURL")
curNamespaceURL := viper.GetString("NamespaceURL")
if len(curDirectorURL) != 0 && len(curNamespaceURL) != 0 {
return nil
}
Expand Down

0 comments on commit bbf3dc6

Please sign in to comment.