Skip to content

Commit

Permalink
[#1374] datastore:rename variable to avoid confusing name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi authored and amercader committed Feb 10, 2015
1 parent fa00111 commit 6935648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/datastore/plugin.py
Expand Up @@ -158,8 +158,8 @@ def _same_ckan_and_datastore_db(self):
return self._get_db_from_url(self.ckan_url) == self._get_db_from_url(self.read_url)

def _get_db_from_url(self, url):
db = sa_url.make_url(url)
return db.host, db.port, db.database
db_url = sa_url.make_url(url)
return db_url.host, db_url.port, db_url.database

def _same_read_and_write_url(self):
return self.write_url == self.read_url
Expand Down

0 comments on commit 6935648

Please sign in to comment.