Merge "Fix docstring for GET /os-migrations and related DB API"

This commit is contained in:
Zuul 2017-11-20 15:18:33 +00:00 committed by Gerrit Code Review
commit fbc1e6d720
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class MigrationsController(wsgi.Controller):
@extensions.expected_errors(())
def index(self, req):
"""Return all migrations in progress."""
"""Return all migrations using the query parameters as filters."""
context = req.environ['nova.context']
context.can(migrations_policies.POLICY_ROOT % 'index')
migrations = self.compute_api.get_migrations(context, req.GET)

View File

@ -564,7 +564,7 @@ def migration_get_in_progress_by_host_and_node(context, host, node):
def migration_get_all_by_filters(context, filters):
"""Finds all migrations in progress."""
"""Finds all migrations using the provided filters."""
return IMPL.migration_get_all_by_filters(context, filters)