but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-c
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
-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
-reschedule_delay = "0.5s"
@clsinit
class OMFChannel(ResourceManager):
self._state = ResourceState.FAILED
msg = "Credentials are not initialzed. XMPP Connections impossible"
self.debug(msg)
- return
+ raise
else :
msg = "Channel's value is not initialized"
self.error(msg)
def stop(self):
"""Stop the RM. It means nothing special for a channel for now
- It becomes STOPPED as soon as this method stops
+ It becomes STOPPED as soon as this method is called
"""
super(OMFChannel, self).stop()