diff options
| author | Julien Danjou <julien@danjou.info> | 2013-07-24 11:16:42 +0200 |
|---|---|---|
| committer | Julien Danjou <julien@danjou.info> | 2013-07-24 11:16:42 +0200 |
| commit | a6ddb0a85c33f46a669cc683ce0b52bdb1507a6c (patch) | |
| tree | 364a409f30198328b23e102bbc999a391713b853 /openstack/common | |
| parent | 8418dd3fba2f6f3ca4c635a26eeb61fd37d05f86 (diff) | |
| download | oslo-a6ddb0a85c33f46a669cc683ce0b52bdb1507a6c.tar.gz oslo-a6ddb0a85c33f46a669cc683ce0b52bdb1507a6c.tar.xz oslo-a6ddb0a85c33f46a669cc683ce0b52bdb1507a6c.zip | |
config.generator: remove the total number of options
This is not really useful, and has the unbearable side effect of triggering
merge errors when two patches modifying the number total of options go in at
the same time.
The merge could very likely succeed is there was not this particular line,
so let's drop it!
Change-Id: Iff7a0b71e88ab573ea668538ad6eba989e9a77b4
Diffstat (limited to 'openstack/common')
| -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('#') |
