Revision ba4b62cf

b/lib/cmdlib.py
3072 3072
    pnode_name = self.pnode.name
3073 3073

  
3074 3074
    if self.op.mac == "auto":
3075
      mac_address=self.cfg.GenerateMAC()
3075
      mac_address = self.cfg.GenerateMAC()
3076 3076
    else:
3077
      mac_address=self.op.mac
3077
      mac_address = self.op.mac
3078 3078

  
3079 3079
    nic = objects.NIC(bridge=self.op.bridge, mac=mac_address)
3080 3080
    if self.inst_ip is not None:
......
4160 4160

  
4161 4161
      if self.kernel_path != constants.VALUE_DEFAULT:
4162 4162
        if not os.path.isabs(self.kernel_path):
4163
          raise errors.OpPrereError("The kernel path must be an absolute"
4163
          raise errors.OpPrereqError("The kernel path must be an absolute"
4164 4164
                                    " filename")
4165 4165
    else:
4166 4166
      self.do_kernel_path = False
......
4170 4170
      if self.initrd_path not in (constants.VALUE_NONE,
4171 4171
                                  constants.VALUE_DEFAULT):
4172 4172
        if not os.path.isabs(self.kernel_path):
4173
          raise errors.OpPrereError("The initrd path must be an absolute"
4173
          raise errors.OpPrereqError("The initrd path must be an absolute"
4174 4174
                                    " filename")
4175 4175
    else:
4176 4176
      self.do_initrd_path = False

Also available in: Unified diff