Skip to content

Commit

Permalink
fix: return correct message about unsupported protocol (#796)
Browse files Browse the repository at this point in the history
* fix: return correct message about unsupported protocol

Signed-off-by: Igor Beliakov <demtis.register@gmail.com>

* Slightly rewrite the switch

Signed-off-by: Igor Beliakov <demtis.register@gmail.com>

Co-authored-by: Edvin N <edvin.norling@xenit.se>
  • Loading branch information
weisdd and Edvin N committed Jul 20, 2022
1 parent 5dc6672 commit ce14a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/grafana/grafana_controller.go
Expand Up @@ -281,7 +281,7 @@ func (r *ReconcileGrafana) getGrafanaAdminUrl(cr *grafanav1alpha1.Grafana, state
case "https":
protocol = "https"
default:
return "", fmt.Errorf("server protocol %v is not supported, please use either http or https", protocol)
return "", fmt.Errorf("server protocol %v is not supported, please use either http or https", cr.Spec.Config.Server.Protocol)
}
}

Expand Down

0 comments on commit ce14a5a

Please sign in to comment.