# where to send notifications upon load_starting
self.substrate=substrate
- def list (self, verbose):
+ def list (self, verbose=False):
for i in self.pool_items: print i.line()
def line (self):
return
self.build_instances.append(BuildInstance(buildname, pid, self))
- def list(self, verbose):
+ def list(self, verbose=False):
if not self.build_instances:
header ('No build process on %s (%s)'%(self.hostname,self.uptime()))
else:
def reboot (self, options):
if not options.soft:
- self.reboot(options)
+ Box.reboot(self,options)
else:
self.soft_reboot (options)
- def list(self, verbose):
+ def list(self, verbose=False):
if not self.plc_instances:
header ('No plc running on %s'%(self.line()))
else:
self.plc_instances.append(PlcVsInstance(self,vservername,ctxid))
def line(self):
- msg="%s [max=%d,%d free, VS-based] (%s)"%(self.hostname, self.max_plcs,self.free_slots(),self.uname())
+ msg="%s [max=%d,free=%d, VS-based] (%s)"%(self.hostname, self.max_plcs,self.free_slots(),self.uname())
return msg
def plc_instance_by_vservername (self, vservername):
# a line describing the box
def line(self):
- msg="%s [max=%d,%d free, LXC-based] (%s)"%(self.hostname, self.max_plcs,self.free_slots(),self.uname())
+ msg="%s [max=%d,free=%d, LXC-based] (%s)"%(self.hostname, self.max_plcs,self.free_slots(),self.uname())
return msg
def plc_instance_by_lxcname (self, lxcname):
self.qemu_instances.append(dummy)
def line (self):
- msg="%s [max=%d,%d free] (%s)"%(self.hostname, self.max_qemus,self.free_slots(),self.driver())
+ msg="%s [max=%d,free=%d] (%s)"%(self.hostname, self.max_qemus,self.free_slots(),self.driver())
return msg
- def list(self, verbose):
+ def list(self, verbose=False):
if not self.qemu_instances:
header ('No qemu process on %s'%(self.line()))
else:
def reboot (self, options):
if not options.soft:
- self.reboot(options)
+ Box.reboot(self,options)
else:
self.run_ssh(['pkill','qemu'],"Killing qemu instances",
dry_run=options.dry_run)
def line (self):
return "%s (%s)"%(self.hostname,self.uptime())
- def list (self, verbose):
+ def list (self, verbose=False):
# verbose shows all tests
if verbose:
instances = self.test_instances
self._sensed=True
return True
- def list (self, verbose):
+ def list (self, verbose=False):
for b in self.default_boxes:
b.list()