Revision 97abc79f

b/lib/cmdlib.py
2373 2373
    if self.op.os_type is not None:
2374 2374
      feedback_fn("Changing OS to '%s'..." % self.op.os_type)
2375 2375
      inst.os = self.op.os_type
2376
      self.cfg.AddInstance(inst)
2376
      self.cfg.Update(inst)
2377 2377

  
2378 2378
    _StartInstanceDisks(self.cfg, inst, None)
2379 2379
    try:
......
3257 3257
    if len(ial.nodes) != ial.required_nodes:
3258 3258
      raise errors.OpPrereqError("iallocator '%s' returned invalid number"
3259 3259
                                 " of nodes (%s), required %s" %
3260
                                 (self.op.iallocator, len(ial.nodes), 
3260
                                 (self.op.iallocator, len(ial.nodes),
3261 3261
                                  ial.required_nodes))
3262 3262
    self.op.pnode = ial.nodes[0]
3263 3263
    logger.ToStdout("Selected nodes for the instance: %s" %

Also available in: Unified diff