From c3c6bd1c3ce8cb5f242bd175cc84608a0a7f8015 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Sat, 31 Oct 2009 21:42:05 +0000 Subject: [PATCH] using method get_self_credential to bootstrap SM credential --- sfa/plc/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/plc/api.py b/sfa/plc/api.py index 01cd8e2d..5af31ec2 100644 --- a/sfa/plc/api.py +++ b/sfa/plc/api.py @@ -185,10 +185,11 @@ class GeniAPI: from sfa.server.registry import Registries registries = Registries(self) registry = registries[self.hrn] + cert_string=self.cert.save_to_string(save_parents=True) # get self credential - arg_list = [None,type,self.hrn] + arg_list = [cert_string,type,self.hrn] request_hash=self.key.compute_hash(arg_list) - self_cred = registry.get_credential(None, type, self.hrn, request_hash) + self_cred = registry.get_self_credential(cert_string, type, self.hrn, request_hash) # get credential arg_list = [self_cred,type,self.hrn] request_hash=self.key.compute_hash(arg_list) -- 2.43.0