option reads comments after value

Bug #1472668 reported by Steve Martinelli
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.config
Won't Fix
Wishlist
Tom Cammann

Bug Description

It seems like oslo.config will read anything specified after the = sign.

For instance:

  notification_driver = log # write to log

will not work, it had to explicitly be:

  notification_driver = log

Obviously we shouldn't allow for everything to be allowed, but I think a hashmark should be fine, since that is what it used for comments in the config files.

Changed in oslo.config:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.config (master)

Fix proposed to branch: master
Review: https://review.openstack.org/199969

Changed in oslo.config:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.config (master)

Change abandoned by Juan Antonio Osorio Robles (<email address hidden>) on branch: master
Review: https://review.openstack.org/199969

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.config (master)

Fix proposed to branch: master
Review: https://review.openstack.org/230411

Changed in oslo.config:
assignee: Juan Antonio Osorio Robles (juan-osorio-robles) → Tom Cammann (tom-cammann)
Revision history for this message
Alexis Lee (alexisl) wrote :

"Configuration files may include comments, prefixed by specific characters (# and ;). Comments may appear on their own in an otherwise empty line, or may be entered in lines holding values or section names. In the latter case, they need to be preceded by a whitespace character to be recognized as a comment. (For backwards compatibility, only ; starts an inline comment, while # does not.)"

TL;DR: use a semicolon not a hash.

Can we close this?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.config (master)

Change abandoned by Tom Cammann (<email address hidden>) on branch: master
Review: https://review.openstack.org/230411
Reason: Likely to cause backwards incompatibility issues.

Revision history for this message
Steve Martinelli (stevemar) wrote :

i'm okay with closing this as invalid, it was a very minor issue, but if there's no easy fix, then i'm okay with that.

Changed in oslo.config:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.