From 79b8afadd38c0b57416652b4b002540ba63e560a Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 5 May 2022 00:42:56 -0500 Subject: [PATCH] Fix: preserve vnc port settings --- plugins/dynamix.vm.manager/include/libvirt_helpers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dynamix.vm.manager/include/libvirt_helpers.php b/plugins/dynamix.vm.manager/include/libvirt_helpers.php index 475e0dd23..8dbc3abf8 100644 --- a/plugins/dynamix.vm.manager/include/libvirt_helpers.php +++ b/plugins/dynamix.vm.manager/include/libvirt_helpers.php @@ -1148,6 +1148,7 @@ // settings not in the GUI, but maybe customized unset($new['memoryBacking'], $new['clock'], $new['features']); // preserve vnc port settings + unset($new['devices']['graphics']['@attributes']['port'],$new['devices']['graphics']['@attributes']['autoport']); if (!$new['devices']['graphics']) unset($old['devices']['graphics']); // update parent arrays if (!$old['devices']['hostdev']) unset($old['devices']['hostdev']);