fix(stack): auto update breaks after restarting Portainer EE-1915

pull/5951/head
Hui 3 years ago committed by GitHub
parent d3cc1a24cc
commit b29961e01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -192,8 +192,8 @@ func (service *Service) RefreshableStacks() ([]portainer.Stack, error) {
bucket := tx.Bucket([]byte(BucketName))
cursor := bucket.Cursor()
var stack portainer.Stack
for k, v := cursor.First(); k != nil; k, v = cursor.Next() {
stack := portainer.Stack{}
err := internal.UnmarshalObject(v, &stack)
if err != nil {
return err

Loading…
Cancel
Save