From 8799bcc8f244e1d121e5c69f5c54636705f6b0f9 Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Thu, 23 Jan 2025 15:33:01 +0100 Subject: [PATCH] Update permissions on VM change. --- dev-example/test-pool.yaml | 2 -- .../src/org/jdrupes/vmoperator/vmaccess/VmAccess.java | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-example/test-pool.yaml b/dev-example/test-pool.yaml index 2ff8d061e..43c36b876 100644 --- a/dev-example/test-pool.yaml +++ b/dev-example/test-pool.yaml @@ -11,5 +11,3 @@ spec: - user: test may: - accessConsole - - start - - stop diff --git a/org.jdrupes.vmoperator.vmaccess/src/org/jdrupes/vmoperator/vmaccess/VmAccess.java b/org.jdrupes.vmoperator.vmaccess/src/org/jdrupes/vmoperator/vmaccess/VmAccess.java index 4ac339796..e6d4e582f 100644 --- a/org.jdrupes.vmoperator.vmaccess/src/org/jdrupes/vmoperator/vmaccess/VmAccess.java +++ b/org.jdrupes.vmoperator.vmaccess/src/org/jdrupes/vmoperator/vmaccess/VmAccess.java @@ -676,7 +676,9 @@ public void onVmDefChanged(VmDefChanged event, VmChannel channel) continue; } } - updateVmDef(connection, model.get(), vmDef); + + // Full update because permissions may have changed + updatePreview(connection, model.get(), vmDef); } } }