[2.9] podman_image: use correct option for remove_signatures flag (#68979)

podman_image module uses 'podman push' command with wrong
flag '--remove_signatures' instead of '--remove-signatures'

This patch fixes the given typo.

Fixes: ansible/ansible#67965

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/69409/head
Abhijeet Kasurde 6 years ago committed by GitHub
parent cf244c094a
commit 153de5ee49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- Fix a typo in remove_signature flag in podman_image module (https://github.com/ansible/ansible/issues/67965).

@ -573,7 +573,7 @@ class PodmanImageManager(object):
args.extend(['--format', push_format])
if self.push_args.get('remove_signatures'):
args.append('--remove_signatures')
args.append('--remove-signatures')
sign_by_key = self.push_args.get('sign_by')
if sign_by_key:

@ -1 +1 @@
podman_package: podman-1.4.*
podman_package: podman-1.3.*

@ -1,4 +1,7 @@
- block:
- name: Include distribution specific variables
include_vars: "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- name: Enable extras repo
command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version]['enable'] | default('echo') }}"
notify: cleanup podman

@ -0,0 +1 @@
podman_package: '@container-tools:1.0'

@ -1,4 +1,4 @@
repo_command:
RedHat7:
enable: yum-config-manager --enable rhui-REGION-rhel-server-extras
disable: yum-config-manager --disable rhui-REGION-rhel-server-extras
enable: yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-rhel-7-server-rhui-extras-rpms
disable: yum-config-manager --disable rhui-REGION-rhel-server-extras rhui-rhel-7-server-rhui-extras-rpms

Loading…
Cancel
Save