summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-03-05 09:17:49 +0000
committerMark McLoughlin <markmc@redhat.com>2013-03-05 16:53:08 +0000
commitad2e416b9dcc4ceb4a12da215c44ef4194a46d79 (patch)
tree505cdf79fe41a1d664215bc736898ab2961b045f /setup.py
parent59b672033919bb315f2673ed1f417787ca4c042e (diff)
downloadoslo-config-ad2e416b9dcc4ceb4a12da215c44ef4194a46d79.tar.gz
Explicitly set ConfigOpts._args to sys.argv[1:]
Fixes bug #1146426 If you don't pass an args list to ConfigOpts.__call__() we pass args=None down to ArgumentParser.parse_args() and it defaults to sys.argv[1:]. However, in log_opt_values() we reference sys._args and you'd expect it to show sys.argv[1:] in this case too but it shows None. Fix this by explicitly setting _conf to sys.argv[1:] rather than relying on argparse's behaviour. Also add a test which would fail without this fix. Change-Id: Id5a769bdda5f2359da18c301cb6305aaf3ed8617
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions