Skip to content

Commit

Permalink
Fix unsupportedProviderDowngradeMessage message
Browse files Browse the repository at this point in the history
Currently we format the message incorrectly, which causes output
like:
Downgrade is not supported for provider aws%!!(MISSING)(EXTRA string=cluster-api)
  • Loading branch information
Fedosin committed Apr 29, 2024
1 parent 7879197 commit 0c2a3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/preflight_checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func checkProviderVersion(ctx context.Context, providerVersion string, provider
operatorv1.PreflightCheckCondition,
operatorv1.UnsupportedProviderDowngradeReason,
clusterv1.ConditionSeverityError,
fmt.Sprintf(unsupportedProviderDowngradeMessage, provider.GetName(), configclient.ClusterAPIProviderName),
fmt.Sprintf(unsupportedProviderDowngradeMessage, provider.GetName()),
))

return fmt.Errorf("downgrade is not supported for provider %q", provider.GetName())
Expand Down

0 comments on commit 0c2a3fd

Please sign in to comment.