Skip to content

Commit 95fc3cb

Browse files
committed
ansible: fix requires & upgrade issue using a playbook.
Fixes: #1508 Original author of this fix is: snapshotleisure <[email protected]> #1517 Change-Id: I32f1f352dea9d33de88f57a7180cfb1ea30f4f4a Signed-off-by: Shreenidhi Shedi <[email protected]> Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22342
1 parent f5750c7 commit 95fc3cb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

SPECS/ansible/ansible.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Configuration-management, application deployment, cloud provisioning system
22
Name: ansible
33
Version: 2.14.2
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: GPLv3+
66
URL: https://www.ansible.com
77
Group: Development/Libraries
@@ -35,6 +35,7 @@ Requires: python3-PyYAML
3535
Requires: python3-xml
3636
Requires: python3-paramiko
3737
Requires: python3-resolvelib
38+
Requires: python3-curses
3839

3940
%description
4041
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.
@@ -71,6 +72,9 @@ touch -r %{SOURCE3} %{buildroot}%{_rpmconfigdir}/%{name}_collection.py
7172
%{_rpmconfigdir}/%{name}_collection.py
7273

7374
%changelog
75+
* Mon Nov 13 2023 Shreenidhi Shedi <[email protected]> 2.14.2-2
76+
- Fix requires
77+
- Fix an issue in upgrade using playbook.
7478
* Wed Feb 22 2023 Nitesh Kumar <[email protected]> 2.14.2-1
7579
- Version upgrade to v2.14.2
7680
* Fri Dec 16 2022 Nitesh Kumar <[email protected]> 2.14.1-1

SPECS/ansible/tdnf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ def convert_to_list(input_list):
289289
"""Convert nested list into flat list"""
290290
flat_list = []
291291

292+
if not input_list:
293+
return flat_list
294+
292295
for sublist in input_list:
293296
if not isinstance(sublist, list):
294297
flat_list.append(sublist)

0 commit comments

Comments
 (0)