mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-07-27 07:54:54 +02:00
API[host.get]() returns software_version (related to vatesfr/xo-web#2).
This commit is contained in:
parent
4327137cb0
commit
5a32a55900
@ -270,12 +270,6 @@ final class Application extends Base
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$version = array( // major.minor.vendor
|
|
||||||
'major' => $host->API_version_major,
|
|
||||||
'minor' => $host->API_version_minor,
|
|
||||||
'vendor' => $host->API_version_vendor,
|
|
||||||
);
|
|
||||||
|
|
||||||
$VMs = array();
|
$VMs = array();
|
||||||
foreach ($vms as $VM)
|
foreach ($vms as $VM)
|
||||||
{
|
{
|
||||||
@ -303,7 +297,7 @@ final class Application extends Base
|
|||||||
'start_time' => $dom0_metrics->start_time['timestamp'],
|
'start_time' => $dom0_metrics->start_time['timestamp'],
|
||||||
'tool_stack_start_time' => $dom0_metrics->start_time['timestamp'], // @todo
|
'tool_stack_start_time' => $dom0_metrics->start_time['timestamp'], // @todo
|
||||||
'uuid' => $host->uuid,
|
'uuid' => $host->uuid,
|
||||||
'version' => $version,
|
'software_version' => $host->software_version,
|
||||||
'VMs' => $VMs,
|
'VMs' => $VMs,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user