Skip to content

Commit 20bb020

Browse files
committed
fix more smaller issues
1 parent 7fa37c6 commit 20bb020

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

operator/src/main/java/it/aboutbits/postgresql/crd/grant/GrantReconciler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public DeleteControl cleanup(
172172
var privileges = objectPrivileges.getValue();
173173

174174
grantService.revoke(
175-
dsl,
175+
tx,
176176
spec,
177177
object,
178178
privileges
@@ -247,7 +247,7 @@ private UpdateControl<Grant> reconcileInTransaction(
247247

248248
if (!missingObjects.isEmpty()) {
249249
status.setPhase(CRPhase.ERROR)
250-
.setMessage("Did not grant or revoke any privileges as the listed %s objects do not exist [resource=%s/%s]%s".formatted(
250+
.setMessage("Did not grant or revoke any privileges as the listed %s objects do not exist [resource=%s/%s]%n%s".formatted(
251251
objectType,
252252
getResourceNamespaceOrOwn(resource, namespace),
253253
name,
@@ -334,7 +334,7 @@ private UpdateControl<Grant> reconcileInTransaction(
334334

335335
String message = null;
336336
if (!ownedObjects.isEmpty()) {
337-
message = "The role is the owner of the listed %s objects and thus we did not need to grant or revoke any privileges from them. [resource=%s/%s]%s".formatted(
337+
message = "The role is the owner of the listed %s objects and thus we did not need to grant or revoke any privileges from them. [resource=%s/%s]%n%s".formatted(
338338
objectType,
339339
getResourceNamespaceOrOwn(resource, namespace),
340340
name,

0 commit comments

Comments
 (0)