diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-07-24 22:54:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-07-24 22:54:49 +0000 |
| commit | aafc227283042592b560b0a38d0ea7c39b402c50 (patch) | |
| tree | 261da2e216bdb12af4a9d5358eea390a7520df68 /openstack | |
| parent | 27bb2b6d7a78a337e64cc956947db6c7a0bb3738 (diff) | |
| parent | a6ddb0a85c33f46a669cc683ce0b52bdb1507a6c (diff) | |
| download | oslo-aafc227283042592b560b0a38d0ea7c39b402c50.tar.gz oslo-aafc227283042592b560b0a38d0ea7c39b402c50.tar.xz oslo-aafc227283042592b560b0a38d0ea7c39b402c50.zip | |
Merge "config.generator: remove the total number of options"
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/config/generator.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/openstack/common/config/generator.py b/openstack/common/config/generator.py index 3d2809b..07aa296 100644 --- a/openstack/common/config/generator.py +++ b/openstack/common/config/generator.py @@ -50,7 +50,6 @@ OPT_TYPES = { MULTISTROPT: 'multi valued', } -OPTION_COUNT = 0 OPTION_REGEX = re.compile(r"(%s)" % "|".join([STROPT, BOOLOPT, INTOPT, FLOATOPT, LISTOPT, MULTISTROPT])) @@ -97,8 +96,6 @@ def generate(srcfiles): for group, opts in opts_by_group.items(): print_group_opts(group, opts) - print("# Total option count: %d" % OPTION_COUNT) - def _import_module(mod_str): try: @@ -163,9 +160,7 @@ def _list_opts(obj): def print_group_opts(group, opts_by_module): print("[%s]" % group) print('') - global OPTION_COUNT for mod, opts in opts_by_module: - OPTION_COUNT += len(opts) print('#') print('# Options defined in %s' % mod) print('#') |
