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

pull/5867/head
Hui 3 years ago committed by GitHub
parent f0efc4f904
commit d17e7c8160
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