Skip to content

Commit

Permalink
Corrects url conversion in export_legacy_catalog
Browse files Browse the repository at this point in the history
Fixes bug 994936

Change-Id: Ia63fdae7d0bcd7f8b0b587da588404765e22fb8f
  • Loading branch information
sorrison committed May 6, 2012
1 parent a1c2dd1 commit c2255ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keystone/common/sql/legacy.py
Expand Up @@ -77,7 +77,7 @@ def dump_catalog(self):
'region': row['region']}

for x in ['internal_url', 'public_url', 'admin_url', 'enabled']:
d['key'] = x.replace('_u', 'U')
d['key'] = x.replace('_url', 'URL')
d['value'] = _translate_replacements(row[x])
o.append(template % d)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_import_legacy.py
Expand Up @@ -108,4 +108,4 @@ def _check_catalog(self, migration):
catalog = catalog_templated.parse_templates(catalog_lines)
self.assert_('RegionOne' in catalog)
self.assert_('compute' in catalog['RegionOne'])
self.assert_('adminUrl' in catalog['RegionOne']['compute'])
self.assert_('adminURL' in catalog['RegionOne']['compute'])

0 comments on commit c2255ed

Please sign in to comment.