Revision eec7840a lib/cmdlib.py

b/lib/cmdlib.py
13419 13419
    ispec[constants.ISPEC_DISK_COUNT] = len(disk_sizes)
13420 13420
    ispec[constants.ISPEC_DISK_SIZE] = disk_sizes
13421 13421

  
13422
    if self.op.offline is not None:
13423
      if self.op.offline:
13424
        msg = "can't change to offline"
13425
      else:
13426
        msg = "can't change to online"
13427
      _CheckInstanceState(self, instance, CAN_CHANGE_INSTANCE_OFFLINE, msg=msg)
13422
    if self.op.offline is not None and self.op.offline:
13423
      _CheckInstanceState(self, instance, CAN_CHANGE_INSTANCE_OFFLINE,
13424
                          msg="can't change to offline")
13428 13425

  
13429 13426
    # Pre-compute NIC changes (necessary to use result in hooks)
13430 13427
    self._nic_chgdesc = []

Also available in: Unified diff