From: S.Çağlar Onur Date: Thu, 23 Dec 2010 01:27:39 +0000 (-0500) Subject: handle AttributeError: ComponentAPI instance has no attribute 'get_registry' X-Git-Tag: nodemanager-2.0-24~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ccd9d3320288af4372a2e0eedccb50283147c196;p=nodemanager.git handle AttributeError: ComponentAPI instance has no attribute 'get_registry' --- diff --git a/plugins/sfagids.py b/plugins/sfagids.py index 81c7b1e..5c2394b 100644 --- a/plugins/sfagids.py +++ b/plugins/sfagids.py @@ -30,9 +30,9 @@ def start(): logger.log("sfagid: plugin starting up ...") if not sfa: return - keyfile, certfile = get_keypair(None) - api = ComponentAPI(key_file=keyfile, cert_file=certfile) try: + keyfile, certfile = get_keypair(None) + api = ComponentAPI(key_file=keyfile, cert_file=certfile) api.get_node_key() except AttributeError: return