Revision e687ec01 tools/burnin

b/tools/burnin
51 51
  2: ""
52 52
  }
53 53

  
54

  
54 55
class InstanceDown(Exception):
55 56
  """The checked instance was not up"""
56 57

  
......
73 74
  """
74 75
  if args:
75 76
    msg = msg % args
76
  indent = kwargs.get('indent', 0)
77
  sys.stdout.write("%*s%s%s\n" % (2*indent, "",
77
  indent = kwargs.get("indent", 0)
78
  sys.stdout.write("%*s%s%s\n" % (2 * indent, "",
78 79
                                  LOG_HEADERS.get(indent, "  "), msg))
79 80
  sys.stdout.flush()
80 81

  
......
564 565
      Log(msg, indent=2)
565 566

  
566 567
      op = opcodes.OpInstanceCreate(instance_name=instance,
567
                                    disks = [ {"size": size}
568
                                              for size in self.disk_size],
568
                                    disks=[{"size": size}
569
                                           for size in self.disk_size],
569 570
                                    disk_template=self.opts.disk_template,
570 571
                                    nics=self.opts.nics,
571 572
                                    mode=constants.INSTANCE_CREATE,
......
719 720
                                        ignore_failures=True)
720 721
      imp_dir = utils.PathJoin(constants.EXPORT_DIR, full_name)
721 722
      imp_op = opcodes.OpInstanceCreate(instance_name=instance,
722
                                        disks = [ {"size": size}
723
                                                  for size in self.disk_size],
723
                                        disks=[{"size": size}
724
                                               for size in self.disk_size],
724 725
                                        disk_template=self.opts.disk_template,
725 726
                                        nics=self.opts.nics,
726 727
                                        mode=constants.INSTANCE_IMPORT,
......
996 997
      if opts.do_replace1 and opts.disk_template in constants.DTS_INT_MIRROR:
997 998
        self.BurnReplaceDisks1D8()
998 999
      if (opts.do_replace2 and len(self.nodes) > 2 and
999
          opts.disk_template in constants.DTS_INT_MIRROR) :
1000
          opts.disk_template in constants.DTS_INT_MIRROR):
1000 1001
        self.BurnReplaceDisks2()
1001 1002

  
1002 1003
      if (opts.disk_template in constants.DTS_GROWABLE and

Also available in: Unified diff