diff options
| author | leiyashuai <leiyashuai@inspur.com> | 2022-09-12 15:56:04 +0800 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2024-08-21 08:52:12 +0000 |
| commit | b3a66ef3d4f360b4dce14e9051dc32861ef44018 (patch) | |
| tree | 5f2eab26b7711905334cf8a6609e4b7ab8a3b6a9 /ansible/module_utils/kolla_container_worker.py | |
| parent | 4615f247fcf50bcdb5f7329f0bd88b58dac57302 (diff) | |
| download | kolla-ansible-b3a66ef3d4f360b4dce14e9051dc32861ef44018.tar.gz kolla-ansible-b3a66ef3d4f360b4dce14e9051dc32861ef44018.zip | |
Remove "distutils" library
Library "distutils" is deprecated in Python 3.10:
https://peps.python.org/pep-0632/
The versions previously referenced using StrictVersion should be old
enough that they will not be used in a Dalmatian deployment:
- Ansible 2.11
- Docker API 1.42, included since Docker engine 23.0.0
Change-Id: Ie315004715a1cb5a91dd54bc64b0a8fd0af650ec
Diffstat (limited to 'ansible/module_utils/kolla_container_worker.py')
| -rw-r--r-- | ansible/module_utils/kolla_container_worker.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ansible/module_utils/kolla_container_worker.py b/ansible/module_utils/kolla_container_worker.py index 4895820c6..7fdf54175 100644 --- a/ansible/module_utils/kolla_container_worker.py +++ b/ansible/module_utils/kolla_container_worker.py @@ -28,7 +28,6 @@ class ContainerWorker(ABC): self.changed = False # Use this to store arguments to pass to exit_json(). self.result = {} - self._cgroupns_mode_supported = True self.systemd = SystemdWorker(self.params) @@ -141,8 +140,6 @@ class ContainerWorker(ABC): pass def compare_cgroupns_mode(self, container_info): - if not self._cgroupns_mode_supported: - return False new_cgroupns_mode = self.params.get('cgroupns_mode') if new_cgroupns_mode is None: # means we don't care what it is |
