summaryrefslogtreecommitdiffstats
path: root/openstack/common/config
Commit message (Collapse)AuthorAgeFilesLines
* config.generator: replace sys.prefix by /usrJulien Danjou2013-07-041-1/+6
| | | | | | | | | | | | Nova has some default configuration option (bindir) value that uses sys.prefix as path start. That can generates weird paths depending on the system where you run the configuration generator. This patch fixes that by hardcoding a replacement of sys.prefix to /usr, which is what's actually expected most of the time. Change-Id: Ied3b58695965a3102670e3761701fbe10ac74785 Signed-off-by: Julien Danjou <julien@danjou.info>
* Fixes crash when no help for an optionThomas Goirand2013-06-251-0/+1
| | | | | | | | | When there is no help available for an option, the generator.py simply crashes. This fixes this by initialising opt_help. Fixes Bug1194524 Change-Id: I94c23973bdad603703f12e936b7e72fe0e81c3f0
* Merge "Fix workarounds for some values"Jenkins2013-06-121-2/+3
|\
| * Fix workarounds for some valuesJulien Danjou2013-06-071-2/+3
| | | | | | | | | | | | | | This fixes the default values for hostnames and paths. Change-Id: I434a4f0269e2d0a3a667056233078ff01d0cdb72 Signed-off-by: Julien Danjou <julien@danjou.info>
* | Use Python 3.x compatible except constructDirk Mueller2013-06-071-1/+1
|/ | | | | | | | Per (proposed) Hacking H203 check, always use the except x as y: construct, which works with any Python version >= 2.6, including Python 3.x. Change-Id: I46028647d5a2a53ba8e9ce4d2e8fc6e71850fdae
* Import oslo.config configuration file generatorJulien Danjou2013-05-282-0/+253
This is stolen from Nova with a fix stolen from https://review.openstack.org/#/c/30251/ Obviously the final goal is to stop copying this file into each project and start improving it, to move it finally in oslo.config. Change-Id: Ie81a5c3db1dc6092bcc6179ab0ab9499239f0bbc Signed-off-by: Julien Danjou <julien@danjou.info>