Ignore:
Timestamp:
Oct 7, 2011 5:29:41 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
58e5a4f
Parents:
743a102
Message:

Terminate nonce experiments #36

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/local_emulab_segment.py

    r743a102 r05c41f5  
    103103        emulab_segment.__init__(self, boss=boss, cert=cert)
    104104
    105     def __call__(self, parent, user, pid, eid, gid=None):
     105    def __call__(self, parent, user, pid, eid, gid=None, terminate=False):
    106106        """
    107107        Stop a sub experiment by calling swapexp on the federant
     
    114114            self.cmd_with_timeout("rm -rf /proj/%s/software/%s" % (pid, eid))
    115115            rv = self.swap_exp(pid, eid, 'out')
     116            if terminate:
     117                rv = self.terminate_exp(pid, eid)
    116118        except self.cmd_timeout:
    117119            rv = False
Note: See TracChangeset for help on using the changeset viewer.