From 92f335ae9425fa4094ca2c4ae7f35bc4e848d50d Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Sat, 20 Oct 2018 12:03:09 -0500 Subject: [PATCH] VM: upon editing vm allow adding vdisk after having none --- plugins/dynamix.vm.manager/include/libvirt_helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.vm.manager/include/libvirt_helpers.php b/plugins/dynamix.vm.manager/include/libvirt_helpers.php index b55392ee5..2a36635e6 100644 --- a/plugins/dynamix.vm.manager/include/libvirt_helpers.php +++ b/plugins/dynamix.vm.manager/include/libvirt_helpers.php @@ -1127,7 +1127,7 @@ if (!$old['devices']['hostdev']) unset($old['devices']['hostdev']); if (!$new['devices']['hostdev']) unset($new['devices']['hostdev']); // remove existing auto-generated settings - unset($old['cputune']['vcpupin'],$old['devices']['graphics'],$old['devices']['video'],$old['devices']['disk'],$old['devices']['interface'],$old['cpu']['@attributes']); + unset($old['cputune']['vcpupin'],$old['devices']['graphics'],$old['devices']['video'],$old['devices']['disk'],$old['devices']['interface'],$old['cpu']['@attributes'],$old['os']['boot']); // set namespace $new['metadata']['vmtemplate']['@attributes']['xmlns'] = 'unraid'; }