diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2024-03-28 09:10:33 +0100 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2024-03-29 05:16:51 +0000 |
| commit | 3c3c5179586f4ceebd70f0fee7e127f636b1c1af (patch) | |
| tree | 98d56264874049cbd67a41109511489e95da5842 /ansible/module_utils | |
| parent | 2a150d1be9be242b0ee1e9075840d3802cfb21e6 (diff) | |
| download | kolla-ansible-3c3c5179586f4ceebd70f0fee7e127f636b1c1af.tar.gz kolla-ansible-3c3c5179586f4ceebd70f0fee7e127f636b1c1af.zip | |
tests: Replace imp with importlib.machinery
It's needed for Python3.12 support, because imp has been dropped [1].
Also shlex dropped s=None support [2].
[1]: https://docs.python.org/3/whatsnew/3.12.html
[2]: https://github.com/python/cpython/issues/94352
Change-Id: I23f37897ea08ac708f6df485f699122df647e552
Diffstat (limited to 'ansible/module_utils')
| -rw-r--r-- | ansible/module_utils/kolla_podman_worker.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/module_utils/kolla_podman_worker.py b/ansible/module_utils/kolla_podman_worker.py index dd215174e..1cba08a12 100644 --- a/ansible/module_utils/kolla_podman_worker.py +++ b/ansible/module_utils/kolla_podman_worker.py @@ -78,7 +78,8 @@ class PodmanWorker(ContainerWorker): ) command = self.params.pop('command', '') - self.params['command'] = shlex.split(command) + if command: + self.params['command'] = shlex.split(command) # we have to transform volumes into mounts because podman-py # functionality is broken |
