Skip to content

Commit c3c134d

Browse files
committed
Correct conditional ordering 🤦
1 parent 25b2b8e commit c3c134d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎operator/controllers/execution/scans/scan_controller.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ func (r *ScanReconciler) initS3Connection() *minio.Client {
200200
// todo(@J12934) remove this
201201
val, err := creds.Get()
202202
if err != nil {
203-
r.Log.Info("Successfully got credentials from AWS IRSA Mechanism", "val", val)
204-
} else {
205203
r.Log.Error(err, "Failed to get credentials from AWS IRSA Mechanism...")
206204
panic(err)
205+
} else {
206+
r.Log.Info("Successfully got credentials from AWS IRSA Mechanism", "val", val)
207207
}
208208
} else {
209209
creds = credentials.NewEnvMinio()

0 commit comments

Comments
 (0)