fix(stack-details): pass agentProxy as an argument (#2196)

pull/2197/head^2
Chaim Lev-Ari 2018-08-21 13:11:39 +03:00 committed by Anthony Lapenna
parent e60d809154
commit 74ca908759
1 changed files with 2 additions and 2 deletions

View File

@ -233,9 +233,9 @@ function ($q, $scope, $state, $transition$, StackService, NodeService, ServiceSe
function loadExternalSwarmStack(name) { function loadExternalSwarmStack(name) {
var agentProxy = $scope.applicationState.endpoint.mode.agentProxy; var agentProxy = $scope.applicationState.endpoint.mode.agentProxy;
retrieveSwarmStackResources(name) retrieveSwarmStackResources(name, agentProxy)
.then(function success(data) { .then(function success(data) {
assignSwarmStackResources(data); assignSwarmStackResources(data, agentProxy);
}) })
.catch(function error(err) { .catch(function error(err) {
Notifications.error('Failure', err, 'Unable to retrieve stack details'); Notifications.error('Failure', err, 'Unable to retrieve stack details');