mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-12-11 15:16:02 +08:00
Fix usage of new filter API
This commit is contained in:
parent
ca3f610f5b
commit
0dee848c77
1 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ func (s *script) runLabeledCommands(label string) error {
|
|||
|
||||
var hasDeprecatedContainers bool
|
||||
if label == "docker-volume-backup.archive-pre" {
|
||||
f.Add("label", "docker-volume-backup.exec-pre")
|
||||
f = client.Filters{}.Add("label", "docker-volume-backup.exec-pre")
|
||||
deprecatedContainers, err := s.cli.ContainerList(context.Background(), client.ContainerListOptions{
|
||||
Filters: f,
|
||||
})
|
||||
|
|
@ -123,7 +123,7 @@ func (s *script) runLabeledCommands(label string) error {
|
|||
}
|
||||
|
||||
if label == "docker-volume-backup.archive-post" {
|
||||
f.Add("label", "docker-volume-backup.exec-post")
|
||||
f = client.Filters{}.Add("label", "docker-volume-backup.exec-post")
|
||||
deprecatedContainers, err := s.cli.ContainerList(context.Background(), client.ContainerListOptions{
|
||||
Filters: f,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue