mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-11 20:29:57 +00:00
fix: docker_compose_v2_run: don't need sanitize labels
This commit is contained in:
parent
8bae4e9c6d
commit
6fb5d5a79e
2
changelogs/fragments/1034-do-not-sanitize-labels.yaml
Normal file
2
changelogs/fragments/1034-do-not-sanitize-labels.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- docker_compose_v2_run - the module has a conflict between the type of parameter it expects and the one it tries to sanitize. Fix removes the label sanitization step because they are already validated by the parameter definition (https://github.com/ansible-collections/community.docker/pull/1034).
|
||||||
@ -253,8 +253,6 @@ from ansible_collections.community.docker.plugins.module_utils.compose_v2 import
|
|||||||
common_compose_argspec_ex,
|
common_compose_argspec_ex,
|
||||||
)
|
)
|
||||||
|
|
||||||
from ansible_collections.community.docker.plugins.module_utils.util import sanitize_labels
|
|
||||||
|
|
||||||
|
|
||||||
class ExecManager(BaseComposeManager):
|
class ExecManager(BaseComposeManager):
|
||||||
def __init__(self, client):
|
def __init__(self, client):
|
||||||
@ -424,7 +422,6 @@ def main():
|
|||||||
needs_api_version=False,
|
needs_api_version=False,
|
||||||
**argspec_ex
|
**argspec_ex
|
||||||
)
|
)
|
||||||
sanitize_labels(client.module.params['labels'], 'labels', client)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
manager = ExecManager(client)
|
manager = ExecManager(client)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user