Fixed primary graphics card selection

Note: this solution isn't complete. Removing a 2nd card doesn't work
This commit is contained in:
bergware
2018-09-04 16:14:42 +02:00
parent 6d63ddd51c
commit 17b7a8d4d5
@@ -1112,7 +1112,7 @@
// update parent arrays
if (!$old['devices']['hostdev']) unset($old['devices']['hostdev']);
if (!$new['devices']['hostdev']) unset($new['devices']['hostdev']);
unset($old['cputune']['vcpupin']);
unset($old['cputune']['vcpupin'],$old['devices']['graphics']);
// set namespace
$new['metadata']['vmtemplate']['@attributes']['xmlns'] = 'unraid';
}