Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.5.0-b5, 3.5.0
-
Fix Version/s: 3.5.1
-
Component/s: None
-
Labels:None
Description
It appears that KVM/HVM templates are not retrieved and shown for the module, as it does not distinguish between normal templates and the KVM/HVM templates.
To fix:
Update /components/modules/solusvm/solusvm.php
Find this line:
$templates = $this->csvToArray($response->templates);
Replace it with the following:
$templates = array();
switch (strtolower($type)) {
case "kvm":
$templates = (isset($response->templateskvm) ? $this->csvToArray($response->templateskvm) : array());
break;
case "xen hvm":
$templates = (isset($response->templateshvm) ? $this->csvToArray($response->templateshvm) : array());
break;
default:
$templates = (isset($response->templates) ? $this->csvToArray($response->templates) : array());
break;
}