summaryrefslogtreecommitdiff
path: root/ironic/common/policy.py
diff options
context:
space:
mode:
authorSam Zuk <szuk@redhat.com>2022-06-14 17:06:14 +0000
committerSam Zuk <szuk@redhat.com>2022-06-14 17:06:14 +0000
commit94f9745f0c04fc12b22edf0ee1f864d56e9c9cb2 (patch)
tree77a5a66249ab981b7af5e91b6b4bda3bb37eb337 /ironic/common/policy.py
parent0659485d630b8651faa633f98b1802bdf244f186 (diff)
downloadironic-94f9745f0c04fc12b22edf0ee1f864d56e9c9cb2.tar.gz
[Minor] Fix misspellings of "insufficient"
In a few places in the codebase, "insufficient" is misspelled as "insufficent," which includes function names and exception class names. This can be inconvenient for writing and debugging code, in which case one would raise an exception/call a function and get an error that is resolved by intentionally misspelling the function call. The changes made here are mostly to the names of exceptions and functions but also include some other instances of this misspelling in docstrings, policy descriptions, etc. There were also some strings describing policies in ironic/common/policy.py that were missing spaces, which were also fixed. Story: 2010089 Task: 45604 Change-Id: I7b65c449d5d30ca30f537a95a3ffd365492e0274
Diffstat (limited to 'ironic/common/policy.py')
-rw-r--r--ironic/common/policy.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/ironic/common/policy.py b/ironic/common/policy.py
index d613aec06..b04f5fb81 100644
--- a/ironic/common/policy.py
+++ b/ironic/common/policy.py
@@ -474,8 +474,8 @@ node_policies = [
name='baremetal:node:get:last_error',
check_str=SYSTEM_OR_OWNER_READER,
scope_types=['system', 'project'],
- description='Governs if the node last_error field is masked from API'
- 'clients with insufficent privileges.',
+ description='Governs if the node last_error field is masked from API '
+ 'clients with insufficient privileges.',
operations=[{'path': '/nodes/{node_ident}', 'method': 'GET'}],
deprecated_rule=deprecated_node_get
),
@@ -483,8 +483,8 @@ node_policies = [
name='baremetal:node:get:reservation',
check_str=SYSTEM_OR_OWNER_READER,
scope_types=['system', 'project'],
- description='Governs if the node reservation field is masked from API'
- 'clients with insufficent privileges.',
+ description='Governs if the node reservation field is masked from API '
+ 'clients with insufficient privileges.',
operations=[{'path': '/nodes/{node_ident}', 'method': 'GET'}],
deprecated_rule=deprecated_node_get
),
@@ -493,7 +493,7 @@ node_policies = [
check_str=SYSTEM_OR_OWNER_READER,
scope_types=['system', 'project'],
description='Governs if the node driver_internal_info field is '
- 'masked from API clients with insufficent privileges.',
+ 'masked from API clients with insufficient privileges.',
operations=[{'path': '/nodes/{node_ident}', 'method': 'GET'}],
deprecated_rule=deprecated_node_get
),
@@ -501,8 +501,8 @@ node_policies = [
name='baremetal:node:get:driver_info',
check_str=SYSTEM_OR_OWNER_READER,
scope_types=['system', 'project'],
- description='Governs if the driver_info field is masked from API'
- 'clients with insufficent privileges.',
+ description='Governs if the driver_info field is masked from API '
+ 'clients with insufficient privileges.',
operations=[{'path': '/nodes/{node_ident}', 'method': 'GET'}],
deprecated_rule=deprecated_node_get
),