2f9e4163f4
This patch adds the opts.py file to the tree as a fix for deployers that package cinder. The opts.py file is no longer being deleted right away by generate_sample.sh after the cinder.sample.conf is being generated. This patch also introduces a pep8 check to make sure that the opts.py file is up to date, so that it will catch when new opts get added to Cinder without the opts.py being updated. To support the ability to keep and check the opts file a number of changes were needed in the check_uptodate.sh script as well as the generate_sample.sh script: - check_uptodate now takes --checkopts instead of --checkonly When checkopts is used the opts.py file is generated using the current code and the generated file is compared to the existing file. The check fails if there are differences. - generate_sample now has the --nosamplefile option. When this option is used, only the opts.py file is generated. The oslo-config-generator code is skipped so no sample file is created. - generate_sample also has some coding style consistency changes. - Added the 'genopts' option to tox so users can generate a fresh opts.py without a sample file when necessary. Closes-Bug: 1501820 Co-Author: Jay Bryant <jsbryant@us.ibm.com> Change-Id: I1f5494ebb19d5f4e8c651cbeef0acad07ad96829 |
||
---|---|---|
.. | ||
check_uptodate.sh | ||
generate_sample.sh |