From 43f7bf9f0b3c12e94c6da3f3065c599f5c1055d9 Mon Sep 17 00:00:00 2001 From: "zhu.fanglei" Date: Fri, 14 Jun 2019 11:45:11 +0800 Subject: [PATCH] Fix :param: in docstring In docstring :param should be used instead of :param:. Change-Id: Id531e58087b8196b30dda12aa4245a1eefd638ac --- ironic/api/controllers/v1/utils.py | 2 +- ironic/cmd/dbsync.py | 10 ++--- ironic/common/images.py | 4 +- ironic/conductor/base_manager.py | 48 +++++++++++------------ ironic/conductor/manager.py | 6 +-- ironic/drivers/modules/xclarity/common.py | 6 +-- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/ironic/api/controllers/v1/utils.py b/ironic/api/controllers/v1/utils.py index 427cd21254..516a906781 100644 --- a/ironic/api/controllers/v1/utils.py +++ b/ironic/api/controllers/v1/utils.py @@ -370,7 +370,7 @@ def is_valid_node_name(name): Check to see that the provided node name is valid, and isn't a UUID. - :param: name: the node name to check. + :param name: the node name to check. :returns: True if the name is valid, False otherwise. """ return is_valid_logical_name(name) and not uuidutils.is_uuid_like(name) diff --git a/ironic/cmd/dbsync.py b/ironic/cmd/dbsync.py index 21e59dc290..4712a3e8ae 100644 --- a/ironic/cmd/dbsync.py +++ b/ironic/cmd/dbsync.py @@ -169,10 +169,10 @@ class DBCommand(object): specified max_count. A migration of an object will typically migrate one row of data inside the database. - :param: context: an admin context - :param: max_count: the maximum number of objects (rows) to migrate; + :param context: an admin context + :param max_count: the maximum number of objects (rows) to migrate; a value >= 1. - :param: options: migration options - dict mapping migration name + :param options: migration options - dict mapping migration name to a dictionary of options for this migration. :raises: Exception from the migration function :returns: Boolean value indicating whether migrations are done. Returns @@ -226,10 +226,10 @@ class DBCommand(object): migrations are done. Otherwise, this will run (some of) the functions until max_count objects have been migrated. - :param: max_count: the maximum number of individual object migrations + :param max_count: the maximum number of individual object migrations or modified rows, a value >= 1. If None, migrations are run in a loop in batches of 50, until completion. - :param: options: options to pass to migrations. List of values in the + :param options: options to pass to migrations. List of values in the form of .