From 524a6d4467b0e977cd20f148603db4c79402e006 Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Mon, 26 Oct 2020 08:38:48 +0100 Subject: [PATCH] fix: type conversation (#894) --- internal/api/grpc/management/idp_config_converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/grpc/management/idp_config_converter.go b/internal/api/grpc/management/idp_config_converter.go index 3b6fe2b712..bb12a7da86 100644 --- a/internal/api/grpc/management/idp_config_converter.go +++ b/internal/api/grpc/management/idp_config_converter.go @@ -251,7 +251,7 @@ func idpConfigStylingTypeToModel(stylingType management.IdpStylingType) iam_mode } func idpProviderTypeStringToModel(providerType string) (iam_model.IDPProviderType, error) { - i, _ := strconv.Atoi(providerType) + i, _ := strconv.ParseInt(providerType, 10, 32) switch management.IdpProviderType(i) { case management.IdpProviderType_IDPPROVIDERTYPE_SYSTEM: return iam_model.IDPProviderTypeSystem, nil