Fix extract_swift_flags.py

The renaming of the swift-conf-changes.xml in the openstack-manual
repository broke a test in the extract_swift_flags.py script. This patch
changes the test to make the script work again.

Change-Id: I71b6960801163c2d2c52253d0c9a45ec2bf02b0d
This commit is contained in:
Gauvain Pocentek 2014-10-07 07:07:06 +02:00
parent 862b243b9f
commit ecc3744a72
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def get_existing_options(optfiles):
"""Parse an existing XML table to compile a list of existing options."""
options = {}
for optfile in optfiles:
if '/swift-conf-changes-' in optfile:
if optfile.endswith('/swift-conf-changes.xml'):
continue
xml = etree.fromstring(open(optfile).read())
tbody = xml.find(DBK_NS + "tbody")