391d18dc64
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 |
||
---|---|---|
.. | ||
__init__.py | ||
checks.py |