Rename get_migrate method for consistency
Use get_migration instead. Change-Id: I921ec986297771a908700b3ed3f7fc449f897087
This commit is contained in:
@@ -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.
|
||||
|
||||
"""
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user