mirror of https://github.com/portainer/portainer
fix(docker): EE-3247 Portainer should not send a host information request when host management features are disabled (#7038)
parent
69baa279d4
commit
89359a21ce
|
@ -43,7 +43,7 @@ angular.module('portainer.docker').controller('HostViewController', [
|
|||
ctrl.state.offlineMode = isOfflineEndpoint(ctrl.endpoint);
|
||||
ctrl.jobs = data.jobs;
|
||||
|
||||
if (ctrl.state.isAgent && agentApiVersion > 1) {
|
||||
if (ctrl.state.isAgent && agentApiVersion > 1 && ctrl.state.enableHostManagementFeatures) {
|
||||
return AgentService.hostInfo(data.info.Hostname).then(function onHostInfoLoad(agentHostInfo) {
|
||||
ctrl.devices = agentHostInfo.PCIDevices;
|
||||
ctrl.disks = agentHostInfo.PhysicalDisks;
|
||||
|
|
|
@ -38,7 +38,7 @@ angular.module('portainer.docker').controller('NodeDetailsViewController', [
|
|||
if (ctrl.state.isAgent) {
|
||||
var agentApiVersion = applicationState.endpoint.agentApiVersion;
|
||||
ctrl.state.agentApiVersion = agentApiVersion;
|
||||
if (agentApiVersion < 2) {
|
||||
if (agentApiVersion < 2 || !ctrl.state.enableHostManagementFeatures) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue