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 authored and apevec committed Jun 11, 2012
1 parent 7715d6c commit 4265499
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -86,6 +86,7 @@ Russell Bryant <rbryant@redhat.com>
saikrishna1511@gmail.com <psaikrishna@ubudesk1004.(none)>
Sai Krishna <saikrishna1511@gmail.com>
Salvatore Orlando <salvatore.orlando@eu.citrix.com>
Sam Morrison <sorrison@gmail.com>
Sandy Walsh <sandy@sandywalsh.com>
Shevek <shevek@nebula.com>
sirish bitra <sirish.bitra@gmail.com>
Expand Down
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 4265499

Please sign in to comment.