cinder/cinder/hacking
Kendall Nelson 391d18dc64 Hacking check for opt name registration
Depending on how opts are registered (either with register_opt() or
register_opts()), the name needs to be singular or plural to match
the method.  This patch adds a hacking check to make sure the names
of the opts and opt lists (or tuples) are correct given how they are
being registered.  The check also verifies that a single option is
sent when register_opt() is used and a list is used when using
register_opts().

Includes fixes to files that don't meet the naming convention and a
addition to the generate_cinder_opts.py file in order to skip
checks.py in the generation of the opts.py file.

Closes-Bug: 1495752
Change-Id: Ia795915c6e3d46272acc30407961d5d876f783ce
2015-10-06 08:35:48 -05:00
..
__init__.py debug level logs should not be translated 2014-06-18 09:03:02 -06:00
checks.py Hacking check for opt name registration 2015-10-06 08:35:48 -05:00