Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1405 from openshift-cherrypick-robot/cherry-pick-…
…1364-to-release-3.7

[release-3.7] Bug 1632648 - Record is missing kubernetes field when Docker log driver is journald
  • Loading branch information
openshift-merge-robot committed Oct 16, 2018
2 parents 7096dd5 + b8b2956 commit c8f8f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluentd/run.sh
Expand Up @@ -23,7 +23,7 @@ docker_uses_journal() {
if grep -q '^[^#].*"log-driver":.*journald' /etc/docker/daemon.json 2> /dev/null ; then
return 0
fi
elif grep -q "^OPTIONS='[^']*--log-driver=journald" /etc/sysconfig/docker 2> /dev/null ; then
elif grep -q "^OPTIONS='[^']*--log-driver[ =][ ]*journald" /etc/sysconfig/docker 2> /dev/null ; then
return 0
fi
return 1
Expand Down

0 comments on commit c8f8f64

Please sign in to comment.