mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
(cherry picked from commit fb55b1d780)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
06626520e5
commit
31966e90a4
2
changelogs/fragments/354-remove-dead-code.yml
Normal file
2
changelogs/fragments/354-remove-dead-code.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- "docker_container - remove unused code that will cause problems with Python 3.13 (https://github.com/ansible-collections/community.docker/pull/354)."
|
||||||
@ -1209,7 +1209,6 @@ status:
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pipes
|
|
||||||
import re
|
import re
|
||||||
import shlex
|
import shlex
|
||||||
import traceback
|
import traceback
|
||||||
@ -1249,14 +1248,6 @@ except Exception:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def shell_join(parts):
|
|
||||||
if getattr(shlex, 'quote', None):
|
|
||||||
quote = shlex.quote
|
|
||||||
else:
|
|
||||||
quote = pipes.quote
|
|
||||||
return ' '.join([quote(part) for part in parts])
|
|
||||||
|
|
||||||
|
|
||||||
REQUIRES_CONVERSION_TO_BYTES = [
|
REQUIRES_CONVERSION_TO_BYTES = [
|
||||||
'kernel_memory',
|
'kernel_memory',
|
||||||
'memory',
|
'memory',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user