URL:
https://github.com/freeipa/freeipa/pull/3976
Author: fcami
Title: #3976: locations.py: fix divide by 0
Action: opened
PR body:
"""
If all IPA servers (or the first server) of a location have
service weights == 0, the sum of the weights is zero leading
to a division by zero in relative weight calculation.
Detect the situation and set relative weight to 0 in this case.
Fixes:
https://pagure.io/freeipa/issue/8135
Signed-off-by: François Cami <fcami(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3976/head:pr3976
git checkout pr3976