Revision 40ed12dd lib/cmdlib.py

b/lib/cmdlib.py
2890 2890
    """Check prerequisites.
2891 2891

  
2892 2892
    """
2893
    for attr in ["kernel_path", "initrd_path", "hvm_boot_order"]:
2894
      if not hasattr(self.op, attr):
2895
        setattr(self.op, attr, None)
2896

  
2893 2897
    if self.op.mode not in (constants.INSTANCE_CREATE,
2894 2898
                            constants.INSTANCE_IMPORT):
2895 2899
      raise errors.OpPrereqError("Invalid instance creation mode '%s'" %

Also available in: Unified diff