mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 23:39:41 +02:00
feat(container-creation): call stopAndRename after pullImage (#2564)
* refactor(container): remove bind of function
This commit is contained in:
parent
6b05a35881
commit
f2cd33e831
1 changed files with 2 additions and 2 deletions
|
@ -659,7 +659,7 @@ function ($q, $scope, $state, $timeout, $transition$, $filter, Container, Contai
|
||||||
}
|
}
|
||||||
$scope.state.actionInProgress = true;
|
$scope.state.actionInProgress = true;
|
||||||
return pullImageIfNeeded()
|
return pullImageIfNeeded()
|
||||||
.then(stopAndRenameContainer(oldContainer))
|
.then(stopAndRenameContainer)
|
||||||
.then(createNewContainer)
|
.then(createNewContainer)
|
||||||
.then(applyResourceControl)
|
.then(applyResourceControl)
|
||||||
.then(connectToExtraNetworks)
|
.then(connectToExtraNetworks)
|
||||||
|
@ -695,7 +695,7 @@ function ($q, $scope, $state, $timeout, $transition$, $filter, Container, Contai
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopAndRenameContainer(oldContainer) {
|
function stopAndRenameContainer() {
|
||||||
if (!oldContainer) {
|
if (!oldContainer) {
|
||||||
return $q.when();
|
return $q.when();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue