Skip to content

Commit

Permalink
#29 - refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
apanasiuk-el committed Dec 16, 2024
1 parent 81db188 commit 50d34cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/google_provider/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (gcp *GCPConfigure) GetGCPSecrets(tenant string) (map[string][]byte, error)
if err != nil {
var respError *apierror.APIError
if errors.As(err, &respError) && respError.GRPCStatus().Code().String() == gRPCErrorPermissionDenied {
zap.S().Warnf("permission denied to get access for GCP secrets values")
zap.S().Warnf("permission denied to get access to GCP secrets values")
return nil, nil
} else {
return nil, err
Expand Down Expand Up @@ -190,7 +190,7 @@ func (gcp *GCPConfigure) SetGCPSecret(tenant, region, keyName string, value []by
if err != nil {
var respError *apierror.APIError
if errors.As(err, &respError) && respError.GRPCStatus().Code().String() == gRPCErrorPermissionDenied {
zap.S().Warnf("permission denied to add to secret %s value", keyName)
zap.S().Warnf("permission denied to add GCP secret %s value", keyName)
} else {
return err
}
Expand Down

0 comments on commit 50d34cf

Please sign in to comment.