log_opt_values() doesn't show sys.argv if no args passed to CONF()

Bug #1146426 reported by Mark McLoughlin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Medium
Mark McLoughlin
Grizzly
Fix Released
Medium
Mark McLoughlin

Bug Description

If you do CONF(), then args should default to sys.argv[1:]

However, we rely on ArgumentParser.parse_args() behaviour here so ConfigOpts._args never gets set to sys.argv[1:] and log_opt_values() doesn't show the args:

 def log_opt_values(self, logger, lvl):
     ...
     logger.log(lvl, "command line args: %s", self._args)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in oslo:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
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.