Rename get_migrate method for consistency

Use get_migration instead.

Change-Id: I921ec986297771a908700b3ed3f7fc449f897087
This commit is contained in:
Gauvain Pocentek
2014-09-26 17:44:16 +02:00
parent e1d8bdccf6
commit 312fc7b48b
3 changed files with 4 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ class HashMap(object):
"""Base class for hashmap configuration."""
@abc.abstractmethod
def get_migrate(self):
def get_migration(self):
"""Return a migrate manager.
"""

View File

@@ -35,7 +35,7 @@ def get_backend():
class HashMap(api.HashMap):
def get_migrate(self):
def get_migration(self):
return migration
def get_service(self, service):

View File

@@ -60,7 +60,7 @@ class DBCommand(object):
else:
try:
module = self.billing_models[name]
mod_migration = module.get_migrate()
mod_migration = module.get_migration()
except IndexError:
raise ModuleNotFound(name)
return mod_migration
@@ -70,7 +70,7 @@ class DBCommand(object):
migrations = []
migrations.append(self.get_module_migration('cloudkitty'))
for model in self.billing_models.values():
migrations.append(model.get_migrate())
migrations.append(model.get_migration())
else:
return [self.get_module_migration(name)]
return migrations