Revision 3c34f03f lib/cmdlib.py

b/lib/cmdlib.py
3814 3814
    newbie_singlehomed = secondary_ip == primary_ip
3815 3815
    if master_singlehomed != newbie_singlehomed:
3816 3816
      if master_singlehomed:
3817
        raise errors.OpPrereqError("The master has no private ip but the"
3817
        raise errors.OpPrereqError("The master has no secondary ip but the"
3818 3818
                                   " new node has one",
3819 3819
                                   errors.ECODE_INVAL)
3820 3820
      else:
3821
        raise errors.OpPrereqError("The master has a private ip but the"
3821
        raise errors.OpPrereqError("The master has a secondary ip but the"
3822 3822
                                   " new node doesn't have one",
3823 3823
                                   errors.ECODE_INVAL)
3824 3824

  

Also available in: Unified diff