Skip to content

Commit

Permalink
fix(controller): Correct default port logic (argoproj#4547)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <[email protected]>
  • Loading branch information
alexec committed Nov 17, 2020
1 parent a712e53 commit 7e12150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ func (wfc *WorkflowController) getMetricsServerConfig() (metrics.ServerConfig, m
path = metrics.DefaultMetricsServerPath
}
port := wfc.Config.MetricsConfig.Port
if port > 0 {
if port == 0 {
port = metrics.DefaultMetricsServerPort
}
metricsConfig := metrics.ServerConfig{
Expand Down

0 comments on commit 7e12150

Please sign in to comment.