Revision d8960502

b/lib/cmdlib.py
10138 10138
    _ReleaseLocks(self, locking.LEVEL_NODE_RES)
10139 10139

  
10140 10140
    if iobj.disk_template != constants.DT_DISKLESS and not self.adopt_disks:
10141
      # we need to set the disks ID to the primary node, since the
10142
      # preceding code might or might have not done it, depending on
10143
      # disk template and other options
10144
      for disk in iobj.disks:
10145
        self.cfg.SetDiskID(disk, pnode_name)
10141 10146
      if self.op.mode == constants.INSTANCE_CREATE:
10142 10147
        if not self.op.no_install:
10143 10148
          pause_sync = (iobj.disk_template in constants.DTS_INT_MIRROR and

Also available in: Unified diff