mirror of
https://github.com/portainer/portainer.git
synced 2025-08-07 23:05:26 +02:00
fix(app/stacks): swarm stack duplicate and migrate errors [EE-5520] (#9039)
* fix(dev): dev container script * fix(app/stacks): make swarm stack migrate effectively target the target env and not the current env * fix(app/stacks): make stack duplicate save the target swarm id on duplicated swarm stack
This commit is contained in:
parent
c7756f3018
commit
73950f3603
3 changed files with 16 additions and 17 deletions
|
@ -50,7 +50,7 @@ angular.module('portainer.app').factory('StackService', [
|
|||
service.migrateSwarmStack = function (stack, targetEndpointId, newName) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
SwarmService.swarm()
|
||||
SwarmService.swarm(targetEndpointId)
|
||||
.then(function success(data) {
|
||||
var swarm = data;
|
||||
if (swarm.Id === stack.SwarmId) {
|
||||
|
@ -324,7 +324,7 @@ angular.module('portainer.app').factory('StackService', [
|
|||
service.createSwarmStackFromFileContent = function (name, stackFileContent, env, endpointId) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
SwarmService.swarm()
|
||||
SwarmService.swarm(endpointId)
|
||||
.then(function success(swarm) {
|
||||
var payload = {
|
||||
Name: name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue