Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
orishoshan committed Dec 18, 2023
1 parent 26fec83 commit 205322c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func (r *ServiceAccountReconciler) reconcileAWSRole(ctx context.Context, service

if found {
if generatedRoleARN != roleARN {
logger.WithField("arn", role.Arn).Debug("ServiceAccount AWS role exists, but annotation is misconfigured, should be updated")
logger.WithField("arn", *role.Arn).Debug("ServiceAccount AWS role exists, but annotation is misconfigured, should be updated")
return true, role, nil
}
logger.WithField("arn", role.Arn).Debug("ServiceAccount has matching AWS role")
logger.WithField("arn", *role.Arn).Debug("ServiceAccount has matching AWS role")
return false, role, nil
}
}
Expand All @@ -150,7 +150,7 @@ func (r *ServiceAccountReconciler) reconcileAWSRole(ctx context.Context, service
return true, nil, fmt.Errorf("failed creating AWS role for service account: %w", err)
}

logger.WithField("arn", role.Arn).Info("created AWS role for ServiceAccount")
logger.WithField("arn", *role.Arn).Info("created AWS role for ServiceAccount")
return true, role, nil
}

Expand Down

0 comments on commit 205322c

Please sign in to comment.