From 0afb636fc4d6a219e7a68307254b4e18a88b79b7 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 11 Aug 2018 16:32:13 +0200 Subject: [PATCH] CPU pinning page: disallow NONE cores selection for VM --- plugins/dynamix/include/UpdateOne.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/UpdateOne.php b/plugins/dynamix/include/UpdateOne.php index f985e14d8..b81a42078 100644 --- a/plugins/dynamix/include/UpdateOne.php +++ b/plugins/dynamix/include/UpdateOne.php @@ -22,7 +22,7 @@ foreach($_POST as $key => $val) { } // map holds the list of each vm or container and its newly proposed cpu assignments $map = array_map(function($d){return substr($d,0,-1);},$map); -file_put_contents('/tmp/map',print_r($map,true)); + switch ($_POST['id']) { case 'vm': // report changed vms in temporary file