From 7595f13ece9631464ab472f7748696faedd93607 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Fri, 12 Jun 2020 17:47:28 -0400 Subject: [PATCH] Fixing some deprecation warnings /usr/local/bin/owner-sync-pagure:110: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. koji 1.22 doesn't support krb_login, it supports gssapi_login Signed-off-by: Mohan Boddu --- roles/bodhi2/backend/templates/owner-sync-pagure.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/bodhi2/backend/templates/owner-sync-pagure.j2 b/roles/bodhi2/backend/templates/owner-sync-pagure.j2 index 7ef4d304d8..3e357f1fbf 100755 --- a/roles/bodhi2/backend/templates/owner-sync-pagure.j2 +++ b/roles/bodhi2/backend/templates/owner-sync-pagure.j2 @@ -106,7 +106,7 @@ def get_options(): if os.access(configFile, os.F_OK): f = open(configFile) config = configparser.ConfigParser() - config.readfp(f) + config.read_file(f) f.close() if config.has_section('koji'): for name, value in config.items('koji'): @@ -324,7 +324,7 @@ def set_koji_ownership(tag, packages, arches, verbose=False): ) try: - session.krb_login(koji_login_options['principal'], koji_login_options['keytab']) + session.gssapi_login(koji_login_options['principal'], koji_login_options['keytab']) except: import traceback traceback.print_exc()