From: Sandrine Avakian Date: Fri, 15 Nov 2013 14:01:16 +0000 (+0100) Subject: Changing get_user_record into a normal object method. X-Git-Tag: geni-v2-broken-and-discontinued~5 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=8e2dae64ec980df7f4fb309afe517556703d68fa Changing get_user_record into a normal object method. --- 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 .