From 448209459dfca5f361daefe526b3281976b0c732 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 10 Apr 2024 12:44:21 -0400 Subject: CI: Add codespell to pep8 Fix existing spelling errors Change-Id: Ie689cf5a344aaa630a4860448b09242333a8e119 --- ansible/module_utils/kolla_container_worker.py | 2 +- ansible/module_utils/kolla_podman_worker.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ansible/module_utils') diff --git a/ansible/module_utils/kolla_container_worker.py b/ansible/module_utils/kolla_container_worker.py index 8e85c7fd9..c3889bab4 100644 --- a/ansible/module_utils/kolla_container_worker.py +++ b/ansible/module_utils/kolla_container_worker.py @@ -30,7 +30,7 @@ class ContainerWorker(ABC): self.systemd = SystemdWorker(self.params) - # NOTE(mgoddard): The names used by Docker are inconsisent between + # NOTE(mgoddard): The names used by Docker are inconsistent between # configuration of a container's resources and the resources in # container_info['HostConfig']. This provides a mapping between the # two. diff --git a/ansible/module_utils/kolla_podman_worker.py b/ansible/module_utils/kolla_podman_worker.py index 1cba08a12..9e27dece4 100644 --- a/ansible/module_utils/kolla_podman_worker.py +++ b/ansible/module_utils/kolla_podman_worker.py @@ -24,7 +24,7 @@ CONTAINER_PARAMS = [ 'name', # string 'cap_add', # list 'cgroupns', # 'str',choices=['private', 'host'] - 'command', # arrray of strings -- docker string + 'command', # array of strings -- docker string # this part is hidden inside dimensions 'cpu_period', # int @@ -56,7 +56,7 @@ CONTAINER_PARAMS = [ 'privileged', # bool 'restart_policy', # set to none, handled by systemd 'remove', # bool - 'restart_tries', # int doesnt matter done by systemd + 'restart_tries', # int doesn't matter done by systemd 'stop_timeout', # int 'tty' # bool # VOLUMES NOT WORKING HAS TO BE DONE WITH MOUNTS @@ -390,7 +390,7 @@ class PodmanWorker(ContainerWorker): def compare_dimensions(self, container_info): new_dimensions = self.params.get('dimensions') - # NOTE(mgoddard): The names used by Docker are inconsisent between + # NOTE(mgoddard): The names used by Docker are inconsistent between # configuration of a container's resources and the resources in # container_info['HostConfig']. This provides a mapping between the # two. -- cgit v1.2.3