From: Tony Mack Date: Fri, 23 Oct 2009 01:28:52 +0000 (+0000) Subject: no longer using geniclient, call registry.get_credential with string_arguments, not... X-Git-Tag: sfa-0.9-6~150 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c41c6c1a978298b1379fa5bf99c0dc0b2a902f3c;p=sfa.git no longer using geniclient, call registry.get_credential with string_arguments, not objects --- diff --git a/sfa/plc/api.py b/sfa/plc/api.py index 88a9f352..855b0a9b 100644 --- a/sfa/plc/api.py +++ b/sfa/plc/api.py @@ -194,8 +194,10 @@ class GeniAPI: arg_list = [self_cred,type,self.hrn] request_hash=self.key.compute_hash(arg_list) cred = registry.get_credential(self_cred, type, self.hrn, request_hash) - cred.save_to_file(cred_filename, save_parents=True) - return cred.save_to_string(save_parents=True) + + # save cred to file + Credential(string=cred).save_to_file(cred_filename, save_parents=True) + return cred def getCredentialFromLocalRegistry(self): """