mirror of https://github.com/portainer/portainer
fix(host): fix host info request EE-4641 (#8169)
parent
3e485c3152
commit
b48aa1274d
|
@ -40,7 +40,7 @@ angular.module('portainer.docker').controller('HostViewController', [
|
||||||
ctrl.jobs = data.jobs;
|
ctrl.jobs = data.jobs;
|
||||||
|
|
||||||
if (ctrl.state.isAgent && agentApiVersion > 1 && ctrl.state.enableHostManagementFeatures) {
|
if (ctrl.state.isAgent && agentApiVersion > 1 && ctrl.state.enableHostManagementFeatures) {
|
||||||
return AgentService.hostInfo(data.info.Hostname).then(function onHostInfoLoad(agentHostInfo) {
|
return AgentService.hostInfo(ctrl.endpoint.Id).then(function onHostInfoLoad(agentHostInfo) {
|
||||||
ctrl.devices = agentHostInfo.PCIDevices;
|
ctrl.devices = agentHostInfo.PCIDevices;
|
||||||
ctrl.disks = agentHostInfo.PhysicalDisks;
|
ctrl.disks = agentHostInfo.PhysicalDisks;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue