From 0da767d51256c13d50336defc7970c5d951cffd0 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jul 25 2015 03:45:23 +0000 Subject: use the centos_cert lib from python-centos --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index 86a306f..edf1bfe 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -18,10 +18,11 @@ import os import re +import sys import warnings from pyrpkg import Commands, rpkgError -from . import centos_cert +from centos import centos_cert from . import cli class DistGitDirectory(object): @@ -152,8 +153,9 @@ class Commands(Commands): def load_user(self): try: - self._user = centos_cert.read_user_cert() - except Exception, e: + self._user = centos_cert.CentOSUserCert().CN + except: + print >>sys.stderr, "Could not load user from cert file" super(Commands, self).load_user() # These are the commands defined in the base pyrpkg.Commands class