Skip to content

Commit 22de1b4

Browse files
author
Jonathan S. Katz
committed
Fix build issue in API server
Someone forgot to cast a pointer.
1 parent 1081469 commit 22de1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/apiserver/backrestservice/backrestimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func CreateBackup(request *msgs.CreateBackrestBackupRequest, ns, pgouser string)
215215
}
216216

217217
// check if primary is ready
218-
if !isPrimaryReady(cluster) {
218+
if !isPrimaryReady(&cluster) {
219219
resp.Status.Code = msgs.Error
220220
resp.Status.Msg = "primary pod is not in Ready state"
221221
return resp

0 commit comments

Comments
 (0)