Revision df4272e5

b/lib/cmdlib.py
5785 5785
    """Check arguments.
5786 5786

  
5787 5787
    """
5788
    # set optional parameters to none if they don't exist
5789
    for attr in ["pnode", "snode", "iallocator", "hypervisor"]:
5790
      if not hasattr(self.op, attr):
5791
        setattr(self.op, attr, None)
5792

  
5788 5793
    # do not require name_check to ease forward/backward compatibility
5789 5794
    # for tools
5790 5795
    if not hasattr(self.op, "name_check"):
......
5808 5813
    """
5809 5814
    self.needed_locks = {}
5810 5815

  
5811
    # set optional parameters to none if they don't exist
5812
    for attr in ["pnode", "snode", "iallocator", "hypervisor"]:
5813
      if not hasattr(self.op, attr):
5814
        setattr(self.op, attr, None)
5815

  
5816 5816
    # cheap checks, mostly valid constants given
5817 5817

  
5818 5818
    # verify creation mode

Also available in: Unified diff