#410 Drop unsupported `warn` in command/shell
Merged 2 years ago by astepano. Opened 2 years ago by mvadkert.

@@ -56,8 +56,6 @@ 

  

    - name: Get the specfile package name

      shell: rpm -q --specfile --queryformat="%{NAME}\n" {{pkgdir}}/*.spec | head -n1

-     args:

-       warn: false

      register: name

  

    - name: Pull down the source tarballs
@@ -92,8 +90,6 @@ 

      rm -rf "{{srcdir}}"

      rpmbuild -bp {{tenv_workdir}}/*.spec --nodeps --define \

      "_sourcedir {{tenv_workdir}}/" --define "_builddir {{srcdir}}"

-   args:

-     warn: false

    when: not fetch_only

  

  - name: Flatten sources

@@ -3,8 +3,6 @@ 

    # usually there should be no conflict, but sometimes installing dnf-utils will actually install yum-utils

    shell: |

        dnf install --assumeyes --allowerasing {{item}}

-   args:

-     warn: false

    register: result

    with_items:

      - dnf-plugins-core
@@ -28,8 +26,6 @@ 

    # Note, package module doesn't support allowerasing

    shell: |

        dnf install --assumeyes --allowerasing {{item}}

-   args:

-     warn: false

    register: result

    with_flattened:

      - "{{ pkgs_ordinary_req|d|list }}"

@@ -40,7 +40,6 @@ 

      register: package_check

      changed_when: False

      failed_when: False

-     args: {warn: no}

    - name: Install test-specific package requirements

      shell:

        rpm-ostree install {{ pkgs_atomic_req }}

This is needed to support newer Ansible.
The warn module param was removed.

See:

https://github.com/ansible/ansible/blob/stable-2.14/changelogs/CHANGELOG-v2.14.rst

command/shell - remove deprecated warn module param

Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com

pretty please pagure-ci rebuild

2 years ago

@astepano @msrb @jkaluza PTAL pls, we now need to build a copr build to release new testing farm. We updated to latest Ansible ;)

Commit 9ec1f45 fixes this pull-request

Pull-Request has been merged by astepano

2 years ago

Pull-Request has been merged by astepano

2 years ago