---
util/koji-gc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/util/koji-gc b/util/koji-gc
index 424b0fb..9f4012d 100755
--- a/util/koji-gc
+++ b/util/koji-gc
@@ -81,6 +81,8 @@ def get_options():
parser.add_option("--principal", help=_("specify a Kerberos principal
to use"))
parser.add_option("--krbservice", default="host",
help=_("the service name of the principal being used by the
hub"))
+ parser.add_option("--hubprincipal", default="host",
+ help=_("specify the Kerberos principal the hub uses"))
parser.add_option("--runas", metavar="USER",
help=_("run as the specified user (requires special
privileges)"))
parser.add_option("--user", help=_("specify user"))
@@ -159,6 +161,7 @@ def get_options():
cfgmap = [
['keytab', None, 'string'],
['principal', None, 'string'],
+ ['hubprincipal', None, 'string'],
['krbservice', None, 'string'],
['runas', None, 'string'],
['user', None, 'string'],
@@ -927,7 +930,7 @@ if __name__ == "__main__":
options, args = get_options()
session_opts = {}
- for k in ('user', 'password', 'krbservice',
'email_domain', 'debug_xmlrpc', 'debug'):
+ for k in ('user', 'password', 'krbservice',
'email_domain', 'debug_xmlrpc', 'debug', 'hubprincipal'):
session_opts[k] = getattr(options,k)
if options.network_hack:
socket.setdefaulttimeout(180)
--
1.7.1