Merge branch 'master' of ssh://git.planet-lab.org/git/plcapi
[plcapi.git] / PLC / Methods / GetLeaseGranularity.py
index 383ee8c..34a0034 100644 (file)
@@ -4,7 +4,6 @@ from PLC.Method import Method
 from PLC.Auth import Auth
 from PLC.Faults import *
 from PLC.Parameter import Parameter
-from PLC.Leases import Lease
 
 class GetLeaseGranularity(Method):
     """
@@ -22,4 +21,4 @@ class GetLeaseGranularity(Method):
 
     def call(self, auth):
 
-        return Lease.granularity
+        return self.api.config.PLC_RESERVATION_GRANULARITY