Skip to content

Commit

Permalink
fix-or-logic-in-docker-center (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLjp committed Dec 1, 2021
1 parent 4856899 commit 876ea78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helper/docker_center.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (did *DockerInfoDetail) IsTimeout() bool {
}

func (did *DockerInfoDetail) GetExternalTags(envs, k8sLabels map[string]string) map[string]string {
if len(envs) == 0 || len(k8sLabels) == 0 {
if len(envs) == 0 && len(k8sLabels) == 0 {
return did.ContainerNameTag
}
tags := make(map[string]string)
Expand Down
2 changes: 1 addition & 1 deletion plugins/input/docker/rawstdout/input_docker_stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func (sds *ServiceDockerStdout) FlushAll(c ilogtail.Collector, firstStart bool)
stdout: sds.Stdout,
stderr: sds.Stderr,
ExternalEnvTag: sds.ExternalEnvTag,
ExternalK8sLabelTag: sds.ExcludeK8sLabel,
ExternalK8sLabelTag: sds.ExternalK8sLabelTag,
}
sds.synerMap[id] = syner
go syner.Start(c)
Expand Down

0 comments on commit 876ea78

Please sign in to comment.