Skip to content

Commit

Permalink
Ignore empty EXCLUDE_LABEL values
Browse files Browse the repository at this point in the history
  • Loading branch information
selimekiz committed Jun 30, 2016
1 parent e92c2a0 commit 00147aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/pump.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func ignoreContainer(container *docker.Container) bool {
}
excludeLabel := getopt("EXCLUDE_LABEL", "")
if value, ok := container.Config.Labels[excludeLabel]; ok {
return strings.ToLower(value) == "true"
return len(excludeLabel) > 0 && strings.ToLower(value) == "true"
}
return false
}
Expand Down

0 comments on commit 00147aa

Please sign in to comment.