Sanitize labels. (#985)

This commit is contained in:
Felix Fontein
2024-11-09 23:53:22 +01:00
committed by GitHub
parent 6daeff69f6
commit 1e10834905
11 changed files with 68 additions and 6 deletions
+3
View File
@@ -248,6 +248,8 @@ from ansible_collections.community.docker.plugins.module_utils.compose_v2 import
common_compose_argspec_ex,
)
from ansible_collections.community.docker.plugins.module_utils.util import sanitize_labels
class ExecManager(BaseComposeManager):
def __init__(self, client):
@@ -416,6 +418,7 @@ def main():
needs_api_version=False,
**argspec_ex
)
sanitize_labels(client.module.params['labels'], 'labels', client)
try:
manager = ExecManager(client)