Changing reschedule_delay internals
[nepi.git] / src / nepi / resources / linux / ccn / ccncat.py
index f5eb269..f0f1bea 100644 (file)
@@ -18,8 +18,7 @@
 # Author: Alina Quereilhac <alina.quereilhac@inria.fr>
 
 from nepi.execution.attribute import Attribute, Flags, Types
-from nepi.execution.resource import clsinit_copy, ResourceState, \
-    reschedule_delay
+from nepi.execution.resource import clsinit_copy, ResourceState
 from nepi.resources.linux.ccn.ccnapplication import LinuxCCNApplication
 
 import os
@@ -48,7 +47,7 @@ class LinuxCCNCat(LinuxCCNApplication):
     def do_deploy(self):
         if not self.ccnd or self.ccnd.state < ResourceState.READY:
             self.debug("---- RESCHEDULING DEPLOY ---- node state %s " % self.node.state )
-            self.ec.schedule(reschedule_delay, self.deploy)
+            self.ec.schedule(self.reschedule_delay, self.deploy)
         else:
             command = self.get("command")
             if not command: