Skip to content

Commit

Permalink
Merge "Update oslo.config.generator"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jul 25, 2013
2 parents 7ae158b + 192c09c commit 6dcbc8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion etc/nova/nova.conf.sample
Expand Up @@ -3147,4 +3147,3 @@
#keymap=en-us


# Total option count: 627
8 changes: 0 additions & 8 deletions nova/openstack/common/config/generator.py 100755 → 100644
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4

# Copyright 2012 SINA Corporation
Expand All @@ -16,8 +15,6 @@
# License for the specific language governing permissions and limitations
# under the License.
#
# @author: Zhongyue Luo, SINA Corporation.
#

"""Extracts OpenStack config option info from module(s)."""

Expand Down Expand Up @@ -53,7 +50,6 @@
MULTISTROPT: 'multi valued',
}

OPTION_COUNT = 0
OPTION_REGEX = re.compile(r"(%s)" % "|".join([STROPT, BOOLOPT, INTOPT,
FLOATOPT, LISTOPT,
MULTISTROPT]))
Expand Down Expand Up @@ -100,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:
Expand Down Expand Up @@ -166,9 +160,7 @@ def is_opt(o):
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('#')
Expand Down

0 comments on commit 6dcbc8c

Please sign in to comment.