deb-cinder/tools
Kendall Nelson 2f9e4163f4 Downstream Fix for Genconfig
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
2015-11-13 12:36:21 -06:00
..
config Downstream Fix for Genconfig 2015-11-13 12:36:21 -06:00
bandit.yaml Add bandit for security static analysis testing 2015-07-25 21:37:31 -07:00
check_exec.py Detect addition of executable files 2015-08-31 12:19:51 -04:00
colorizer.py Don't use dict.iterkeys() 2015-05-25 22:20:28 +02:00
enable-pre-commit-hook.sh Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
fast8.sh Add "fast8" tox env 2015-09-22 15:43:51 -04:00
generate_driver_list.py Add drivers list generator 2015-07-21 18:04:29 +03:00
install_venv_common.py Sync install_venv_common from oslo-incubator 2014-12-19 14:37:45 -06:00
install_venv.py Remove vim header 2013-12-30 18:53:02 -06:00
lintstack.py Update create_volume API to use versionedobjects 2015-11-12 04:53:42 -08:00
lintstack.sh Add pylint-based lintstack test to tox environment 2013-05-10 07:22:05 -04:00
with_venv.sh Fix up the test framework 2013-06-14 14:02:17 +00:00