diff --git a/plugins/modules/podman_play.py b/plugins/modules/podman_play.py index 270ec14..390aab7 100644 --- a/plugins/modules/podman_play.py +++ b/plugins/modules/podman_play.py @@ -202,7 +202,7 @@ class PodmanKubeManagement: # pod_name = extract_pod_name(module.params['kube_file']) if self.module.params['annotation']: for k, v in self.module.params['annotation'].items(): - self.command.extend(['--annotation', '"{k}={v}"'.format(k=k, v=v)]) + self.command.extend(['--annotation', '{k}={v}'.format(k=k, v=v)]) if self.module.params['username']: creds += [self.module.params['username']] if self.module.params['password']: diff --git a/tests/integration/targets/podman_play/tasks/main.yml b/tests/integration/targets/podman_play/tasks/main.yml index 2482815..a97f3cd 100644 --- a/tests/integration/targets/podman_play/tasks/main.yml +++ b/tests/integration/targets/podman_play/tasks/main.yml @@ -118,7 +118,7 @@ assert: that: - remove_pod is changed - + - name: Get deleted pod info containers.podman.podman_pod_info: executable: "{{ test_executable | default('podman') }}" @@ -129,7 +129,7 @@ assert: that: - nonexist.pods == [] - + always: - name: Delete all pods leftovers from tests @@ -176,4 +176,4 @@ ansible_python_interpreter: "/usr/bin/python" kube_dir: /tmp kube_file: multi-yaml.yml - target_container: foobar-container-1 \ No newline at end of file + target_container: foobar-container-1