From 4861b42285c1a62bff1524f7405c38715164da69 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Wed, 15 Nov 2017 15:56:13 -0500 Subject: [PATCH] Fix docstring for GET /os-migrations and related DB API The GET /os-migrations API and migration_get_all_by_filters DB API method are not actually filtering migrations by status. The API will only do that if the user requests the migrations to be filtered by status using query paramters to the REST API. The docstrings related to this were confusing since the GET /servers/{server_id}/migrations REST API *will* filter by in-progress status. Change-Id: Ie9c500ae62c23930bdb8f5700dbdb9f149105e9a --- nova/db/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/db/api.py b/nova/db/api.py index 12fcfe7ba..da8d73633 100644 --- a/nova/db/api.py +++ b/nova/db/api.py @@ -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)