fix: type conversation (#894)

This commit is contained in:
Livio Amstutz 2020-10-26 08:38:48 +01:00 committed by GitHub
parent e7514998bf
commit 524a6d4467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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