Skip to content

Commit

Permalink
ansible: fix requires & upgrade issue using a playbook.
Browse files Browse the repository at this point in the history
Fixes: #1508

Original author of this fix is:
snapshotleisure <sfzhao99@hotmail.com>
#1517

Change-Id: I32f1f352dea9d33de88f57a7180cfb1ea30f4f4a
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22342
  • Loading branch information
sshedi committed Nov 14, 2023
1 parent f5750c7 commit 95fc3cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SPECS/ansible/ansible.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Configuration-management, application deployment, cloud provisioning system
Name: ansible
Version: 2.14.2
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv3+
URL: https://www.ansible.com
Group: Development/Libraries
Expand Down Expand Up @@ -35,6 +35,7 @@ Requires: python3-PyYAML
Requires: python3-xml
Requires: python3-paramiko
Requires: python3-resolvelib
Requires: python3-curses

%description
Ansible is a radically simple IT automation system. It handles configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero downtime rolling updates with load balancers.
Expand Down Expand Up @@ -71,6 +72,9 @@ touch -r %{SOURCE3} %{buildroot}%{_rpmconfigdir}/%{name}_collection.py
%{_rpmconfigdir}/%{name}_collection.py

%changelog
* Mon Nov 13 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.14.2-2
- Fix requires
- Fix an issue in upgrade using playbook.
* Wed Feb 22 2023 Nitesh Kumar <kunitesh@vmware.com> 2.14.2-1
- Version upgrade to v2.14.2
* Fri Dec 16 2022 Nitesh Kumar <kunitesh@vmware.com> 2.14.1-1
Expand Down
3 changes: 3 additions & 0 deletions SPECS/ansible/tdnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ def convert_to_list(input_list):
"""Convert nested list into flat list"""
flat_list = []

if not input_list:
return flat_list

for sublist in input_list:
if not isinstance(sublist, list):
flat_list.append(sublist)
Expand Down

0 comments on commit 95fc3cb

Please sign in to comment.