X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fccn%2Fccnping.py;h=934db3cde205ec44019cdd351b9084c8e12e0018;hb=09ac796bac9aa2c41c5ad830f404fe128fffb22d;hp=d82895043bf66a768cc10c1a2d20eaf74dc16d2b;hpb=332038a4a4e7e8c74db87dea003e4c02418175d6;p=nepi.git diff --git a/src/nepi/resources/linux/ccn/ccnping.py b/src/nepi/resources/linux/ccn/ccnping.py index d8289504..934db3cd 100644 --- a/src/nepi/resources/linux/ccn/ccnping.py +++ b/src/nepi/resources/linux/ccn/ccnping.py @@ -19,7 +19,7 @@ from nepi.execution.attribute import Attribute, Flags, Types from nepi.execution.resource import ResourceManager, clsinit_copy, \ - ResourceState, reschedule_delay, failtrap + ResourceState, reschedule_delay from nepi.resources.linux.ccn.ccnpingserver import LinuxCCNPingServer from nepi.util.timefuncs import tnow, tdiffsec @@ -65,15 +65,14 @@ class LinuxCCNPing(LinuxCCNPingServer): if ccnpingserver: return ccnpingserver[0] return None - @failtrap - def start(self): + def do_start(self): if not self.ccnpingserver or \ self.ccnpingserver.state < ResourceState.STARTED: self.debug("---- RESCHEDULING START---- ccnpingserver state %s " % \ self.ccnpingserver.state ) self.ec.schedule(reschedule_delay, self.start) else: - super(LinuxCCNPing, self).start() + super(LinuxCCNPing, self).do_start() @property def _start_command(self):