From 7c8f671fb185b46f47cb93ce937b69b73f63eb2d Mon Sep 17 00:00:00 2001 From: Laurence Date: Tue, 23 Apr 2024 13:16:14 +0100 Subject: [PATCH] wip: me lost --- pkg/acquisition/modules/docker/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/acquisition/modules/docker/docker.go b/pkg/acquisition/modules/docker/docker.go index 38014471e..fe1ce8953 100644 --- a/pkg/acquisition/modules/docker/docker.go +++ b/pkg/acquisition/modules/docker/docker.go @@ -91,7 +91,7 @@ func (d *DockerSource) UnmarshalConfig(yamlConfig []byte) error { return fmt.Errorf("no containers names or containers ID configuration provided") } - if d.Config.UseContainerLabels && len(d.Config.ContainerName) > 0 || len(d.Config.ContainerID) > 0 || len(d.Config.ContainerIDRegexp) > 0 || len(d.Config.ContainerNameRegexp) > 0 { + if d.Config.UseContainerLabels && (len(d.Config.ContainerName) > 0 || len(d.Config.ContainerID) > 0 || len(d.Config.ContainerIDRegexp) > 0 || len(d.Config.ContainerNameRegexp) > 0) { return fmt.Errorf("use_container_labels and container_name, container_id, container_id_regexp, container_name_regexp are mutually exclusive") }