summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-07-07 20:30:42 +0000
committerGerrit Code Review <review@openstack.org>2021-07-07 20:30:42 +0000
commit415464db4a2309d77295fd7b2bef8e1a97351699 (patch)
treea67d9e4bad288673386536162f346d98e750caf0
parenta14d3adae0d211e17f32ad27883e093da7e4754f (diff)
parent9e477d17878c61d61a8fd675faad8854165b3ce1 (diff)
downloadironic-415464db4a2309d77295fd7b2bef8e1a97351699.tar.gz
Merge "Fix typos in API sanitization change notes"
-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()