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 .