Revision 320eda24

b/tools/burnin
88 88
    self.instances = []
89 89
    self.to_rem = []
90 90
    self.opts = None
91
    self.cl = cli.GetClient()
92 91
    self.ParseOptions()
92
    self.cl = cli.GetClient()
93 93
    self.GetState()
94 94

  
95 95
  def ClearFeedbackBuf(self):
......
222 222
                      help="Enable checking of instance status via http,"
223 223
                      " looking for /hostname.txt that should contain the"
224 224
                      " name of the instance")
225
    parser.add_option("-K", "--keep-instances", default=False,
226
                      action="store_true",
227
                      dest="keep_instances",
228
                      help="Leave instances on the cluster after burnin,"
229
                      " for investigation in case of errors or simply"
230
                      " to use them")
225 231

  
226 232

  
227 233
    options, args = parser.parse_args()
......
724 730
        Log("Error detected: opcode buffer follows:\n\n")
725 731
        Log(self.GetFeedbackBuf())
726 732
        Log("\n\n")
727
      self.Remove()
733
      if not self.opts.keep_instances:
734
        self.Remove()
728 735

  
729 736
    return 0
730 737

  

Also available in: Unified diff