use the centos_cert lib from python-centos

This commit is contained in:
Brian Stinson 2015-07-24 22:45:23 -05:00
parent b35b8717cf
commit 0da767d512

View file

@ -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