| |
@@ -95,7 +95,12 @@
|
| |
profile = PRODUCTION_KOJI_PROFILE if not staging else STAGING_KOJI_PROFILE
|
| |
koji_module = koji.get_profile_module(profile)
|
| |
kojisession = koji_module.ClientSession(koji_module.config.server)
|
| |
- kojisession.krb_login()
|
| |
+ # Compose profile has keytab set which can be used to create koji session
|
| |
+ # Nightly composes requires the koji session created using keytab to do koji blocking.
|
| |
+ if profile == "compose_koji":
|
| |
+ kojisession.krb_login(keytab=koji_module.config.keytab)
|
| |
+ else:
|
| |
+ kojisession.krb_login()
|
| |
pkglist = kojisession.listPackages(tagID=tag, inherited=True)
|
| |
blocked = []
|
| |
unblocked = []
|
| |
can we just check if koji_module.config.keytab exists or is not empty? does it actually work?