Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #694 from weaveworks/dont-run-auto-nops
Browse files Browse the repository at this point in the history
Avoid running no-op update jobs
  • Loading branch information
squaremo authored Aug 8, 2017
2 parents b745900 + 2516e98 commit 4a9b9cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daemon/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ func (d *Daemon) pollForNewImages(logger log.Logger) {
}
}

d.UpdateManifests(update.Spec{Type: update.Auto, Spec: changes})
if len(changes.Changes) > 0 {
d.UpdateManifests(update.Spec{Type: update.Auto, Spec: changes})
}
}

func getTagPattern(services policy.ServiceMap, service flux.ServiceID, container string) string {
Expand Down

0 comments on commit 4a9b9cf

Please sign in to comment.