From 8e2dae64ec980df7f4fb309afe517556703d68fa Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Fri, 15 Nov 2013 15:01:16 +0100 Subject: [PATCH] Changing get_user_record into a normal object method. --- sfa/cortexlab/cortexlabdriver.py | 7 ++++--- sfa/iotlab/iotlabdriver.py | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sfa/cortexlab/cortexlabdriver.py b/sfa/cortexlab/cortexlabdriver.py index 00ad8675..5fc26049 100644 --- a/sfa/cortexlab/cortexlabdriver.py +++ b/sfa/cortexlab/cortexlabdriver.py @@ -15,11 +15,12 @@ from sfa.util.xrn import Xrn, hrn_to_urn, get_authority from sfa.cortexlab.cortexlabaggregate import CortexlabAggregate, \ cortexlab_xrn_to_hostname -from sfa.iotlab.iotlabslices import CortexlabSlices +from sfa.cortexlab.cortexlabslices import CortexlabSlices from sfa.cortexlab.cortexlabshell import CortexlabShell + class CortexlabDriver(Driver): """ Cortexlab Driver class inherited from Driver generic class. @@ -293,8 +294,8 @@ class CortexlabDriver(Driver): % (resources, res)) return result - @staticmethod - def get_user_record(hrn): + + def get_user_record(self, hrn): """ Returns the user record based on the hrn from the SFA DB . diff --git a/sfa/iotlab/iotlabdriver.py b/sfa/iotlab/iotlabdriver.py index a5703d4b..6cd292a8 100644 --- a/sfa/iotlab/iotlabdriver.py +++ b/sfa/iotlab/iotlabdriver.py @@ -297,8 +297,7 @@ class IotlabDriver(Driver): % (resources, res)) return result - @staticmethod - def get_user_record(hrn): + def get_user_record(self, hrn): """ Returns the user record based on the hrn from the SFA DB . -- 2.43.0