From 046d91324ca40d8c817d77ce6ec3520f19253bcc Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 24 2014 04:53:07 +0000 Subject: load a user from the client cert --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index 939a1c3..c0f65b5 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -93,6 +93,12 @@ class Commands(pyrpkg.Commands): # sig packages are built in the tag that matches the git branch self._target = '{0}-el{1}'.format(self.branch_merge, self.distval) + def load_user(self): + try: + self._user = centos_cert.read_user_cert() + except Exception, e: + super(Commands, self).load_user() + # These are the commands defined in the base pyrpkg.Commands class # and have been implemented here