Revision 9f88b0e8 lib/cmdlib.py

b/lib/cmdlib.py
6265 6265
                                   " is missing the disk_template information",
6266 6266
                                   errors.ECODE_INVAL)
6267 6267

  
6268
    if (self.op.hypervisor is None and
6269
        einfo.has_option(constants.INISECT_INS, "hypervisor")):
6270
      self.op.hypervisor = einfo.get(constants.INISECT_INS, "hypervisor")
6271
    if einfo.has_section(constants.INISECT_HYP):
6272
      # use the export parameters but do not override the ones
6273
      # specified by the user
6274
      for name, value in einfo.items(constants.INISECT_HYP):
6275
        if name not in self.op.hvparams:
6276
          self.op.hvparams[name] = value
6277

  
6268 6278
  def CheckPrereq(self):
6269 6279
    """Check prerequisites.
6270 6280

  

Also available in: Unified diff