LinuxApplication: stdin made symlink to file in shared directory
[nepi.git] / src / nepi / resources / omf / node.py
index 156ba86..fad525b 100644 (file)
 #         Julien Tribino <julien.tribino@inria.fr>
 
 
-from nepi.execution.resource import ResourceManager, clsinit, ResourceState
+from nepi.execution.resource import ResourceManager, clsinit, ResourceState, \
+        reschedule_delay
 from nepi.execution.attribute import Attribute, Flags 
 
 from nepi.resources.omf.omf_api import OMFAPIFactory
 
 import time
 
-reschedule_delay = "0.5s"
 
 @clsinit
 class OMFNode(ResourceManager):
@@ -134,7 +134,7 @@ class OMFNode(ResourceManager):
                 self._state = ResourceState.FAILED
                 msg = "Credentials are not initialzed. XMPP Connections impossible"
                 self.debug(msg)
-                return
+                raise AttributeError, msg
 
         super(OMFNode, self).deploy()
 
@@ -150,7 +150,7 @@ class OMFNode(ResourceManager):
         """
         pass
 
-     def start(self):
+    def start(self):
         """Start the RM. It means nothing special for an interface for now
            It becomes STARTED as soon as this method starts.