Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

logshifter/config.go: modify logshifter config reader such that blank lines (line == \n) don't cause reading to stop #6138

Merged

Conversation

abutcher
Copy link
Member

While reading logshifter config, continue if line is only a newline. This allows config reading to continue until no more reading can occur rather than stopping as soon as a blank line is encountered.

I ran into this with some hosts configured using an old version of puppet-openshift_origin which would deploy a logshifter config with blank lines where conditional statements were not trimmed. This has since been fixed in the puppet module (via 575deb5) which no longer introduces blank lines to the file. I figured it couldn't hurt to attack this from both sides.

Thanks!

… lines (line == \n) don't cause reading to stop

While reading logshifter config, continue if line is only a newline. This allows config reading to continue until no more reading can occur rather than stopping as soon as a blank line is encountered.
@brenton
Copy link
Contributor

brenton commented May 12, 2015

@tiwillia, want to take a look at this when you dig in to the other logshifter thing you're working on?

@tiwillia
Copy link
Member

@brenton this looks great to me. Can't see it causing any problems.

@brenton
Copy link
Contributor

brenton commented May 19, 2015

[merge] Could one of you create a bug in Enterprise so QE tests this formally?

@openshift-bot
Copy link

@openshift-bot
Copy link

Evaluated for online up to b58237d

@tiwillia
Copy link
Member

Bug 1222953
Bug link https://bugzilla.redhat.com/show_bug.cgi?id=1222953

openshift-bot pushed a commit that referenced this pull request May 19, 2015
@openshift-bot openshift-bot merged commit 927c347 into openshift:master May 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants