mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(edge-update): set edge stack status to EdgeStackStatusError to avoid redeployment of portainer-updater [BE-11855] (#714)
This commit is contained in:
parent
799325d9f8
commit
1bc91d0c7c
2 changed files with 6 additions and 4 deletions
|
@ -272,6 +272,7 @@ func (c *ComposeDeployer) GetExistingEdgeStacks(ctx context.Context) ([]libstack
|
||||||
m[id] = libstack.EdgeStack{
|
m[id] = libstack.EdgeStack{
|
||||||
ID: id,
|
ID: id,
|
||||||
Name: cs.Labels[api.ProjectLabel],
|
Name: cs.Labels[api.ProjectLabel],
|
||||||
|
ExitCode: cs.ExitCode,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,4 +90,5 @@ type RemoveOptions struct {
|
||||||
type EdgeStack struct {
|
type EdgeStack struct {
|
||||||
ID int
|
ID int
|
||||||
Name string
|
Name string
|
||||||
|
ExitCode int
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue