summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ironic/api/controllers/v1/collection.py2
-rw-r--r--ironic/api/controllers/v1/node.py9
2 files changed, 5 insertions, 6 deletions
diff --git a/ironic/api/controllers/v1/collection.py b/ironic/api/controllers/v1/collection.py
index f0cf53741..cdcf13712 100644
--- a/ironic/api/controllers/v1/collection.py
+++ b/ironic/api/controllers/v1/collection.py
@@ -42,7 +42,7 @@ def list_convert_with_links(items, item_name, limit, url=None, fields=None,
done in-place
:param key_field:
Key name for building next URL
- :parm sanitizer_args:
+ :param sanitizer_args:
Dictionary with additional arguments to be passed to the sanitizer.
:param kwargs:
other arguments passed to ``get_next``
diff --git a/ironic/api/controllers/v1/node.py b/ironic/api/controllers/v1/node.py
index b43f71f40..f5fbb2275 100644
--- a/ironic/api/controllers/v1/node.py
+++ b/ironic/api/controllers/v1/node.py
@@ -1390,7 +1390,7 @@ def node_sanitize(node, fields, cdict=None,
:type fields: list of str
:param cdict: Context dictionary for policy values evaluation.
If not provided, it will be executed by the method,
- however for enumarting node lists, it is more efficent
+ however for enumerating node lists, it is more efficent
to provide.
:param show_driver_secrets: A boolean value to allow external single
evaluation of policy instead of once per
@@ -1406,10 +1406,9 @@ def node_sanitize(node, fields, cdict=None,
# the time spent preparing to return a node to. If it takes us
# ~ 4.5 seconds to get 1000 nodes, we spend approximately 4 seconds
# PER 1000 in this call. When the calling method provides
- # cdict, show_driver_secrets, show_instane_secrets, and
- # evaluate_additional_policies, then performance of this method takes
- # roughly half of the time, but performance increases in excess of 200%
- # as policy checks are costly.
+ # cdict, show_driver_secrets, show_instance_secrets, and
+ # evaluate_additional_policies, then performance increases
+ # in excess of 200% as policy checks are costly.
if not cdict:
cdict = api.request.context.to_policy_values()