#4171 koji-gc: Add ccache to koji-gc options
Opened 7 months ago by jcupova. Modified 6 hours ago
jcupova/koji issue-4116  into  master

file modified
+4 -1
@@ -97,6 +97,8 @@ 

                                            "recommended.")

      parser.add_option("--exit-on-lock", action="store_true",

                        help="quit if --lock-file exists, don't wait")

+     parser.add_option("--ccache", default="/var/tmp/koji-gc.ccache",

+                       help="Path to Kerberos credentials cache")

      # parse once to get the config file

      (options, args) = parser.parse_args()

  
@@ -142,6 +144,7 @@ 

          ['timeout', None, 'integer'],

          ['lock_file', None, 'string'],

          ['exit_on_lock', None, 'boolean'],

+         ['ccache', None, 'string'],

      ]

      for name, alias, type in cfgmap:

          if alias is None:
@@ -399,7 +402,7 @@ 

          session.login()

      elif koji.reqgssapi:

          session.gssapi_login(principal=options.principal, keytab=options.keytab,

-                              proxyuser=options.runas)

+                              proxyuser=options.runas, ccache=options.ccache)

      if not options.noauth and not session.logged_in:

          error("Error: unable to log in, no authentication methods available")

      ensure_connection(session)

rebased onto 8a6857f

7 months ago

rebased onto 8a6857f

7 months ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-ready

6 months ago

Would this be able to make it into 1.35.2?

Hadn't planned on it. We're almost ready to close 1.35.2 out. As a new feature, it seemed sensible to save it for the major release. Should be easy to backport

Hadn't planned on it. We're almost ready to close 1.35.2 out. As a new feature, it seemed sensible to save it for the major release. Should be easy to backport

No problem at all. Thanks.

Metadata Update from @tkopecek:
- Pull-request untagged with: testing-ready
- Pull-request tagged with: testing-basic

6 hours ago
Metadata