Unify return type of list_active_domains for python{2,3}

This commit is contained in:
Lukas Slebodnik 2015-06-29 21:59:11 +02:00
parent 3fa3e7c22a
commit aa1a6b1ea9
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From adac3439a9f7de30400420c650b3f3b9c80fe285 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn@redhat.com>
Date: Mon, 29 Jun 2015 21:54:26 +0200
Subject: [PATCH] SSSDConfig: return list for list_active_domains
---
src/config/SSSDConfig/__init__.py.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in
index f2d9bf0190745d4a5296c56212e5ff97681db59c..b9219bf1ed52c765e70076faa45cc6621f73b50c 100644
--- a/src/config/SSSDConfig/__init__.py.in
+++ b/src/config/SSSDConfig/__init__.py.in
@@ -1778,7 +1778,7 @@ class SSSDConfig(SSSDChangeConf):
if dom not in configured_domains:
del domain_dict[dom]
- active_domains = domain_dict.keys()
+ active_domains = list(domain_dict.keys())
else:
active_domains = []
--
2.4.3

View File

@ -29,7 +29,7 @@
Name: sssd
Version: 1.13.0
Release: 1%{?dist}.alpha
Release: 2%{?dist}.alpha
Group: Applications/System
Summary: System Security Services Daemon
License: GPLv3+
@ -38,6 +38,7 @@ Source0: https://fedorahosted.org/released/sssd/%{name}-%{version}alpha.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
### Patches ###
Patch0001: 0001-SSSDConfig-return-list-for-list_active_domains.patch
### Dependencies ###
Requires: sssd-common = %{version}-%{release}
@ -1010,6 +1011,9 @@ fi
%{_libdir}/%{name}/modules/libwbclient.so
%changelog
* Tue Jun 30 2015 Lukas Slebodnik <lslebodn@redhat.com> - 1.13.0-2.alpha
- Unify return type of list_active_domains for python{2,3}
* Mon Jun 22 2015 Lukas Slebodnik <lslebodn@redhat.com> - 1.13.0-1.alpha
- New upstream release 1.13 alpha
- https://fedorahosted.org/sssd/wiki/Releases/Notes-1.13.0alpha