[Freeipa-devel] [freeipa PR#416][comment] replica install: relax domain level check for promotion

HonzaCholasta freeipa-github-notification at redhat.com
Tue Jan 31 11:01:15 UTC 2017


  URL: https://github.com/freeipa/freeipa/pull/416
Title: #416: replica install: relax domain level check for promotion

HonzaCholasta commented:
"""
I see. The point is, `check_domain_level()` is supposed to check whether replica promotion is possible or not in the current domain level, so it's weird it has an expected domain level argument and even weirder to introduce additional minimum domain level argument, when all it should have is a single boolean argument saying wheter you want to promote or not:
```python
def check_domain_level(api, want_promote):
    ...

    promote = current >= constants.DOMAIN_LEVEL_1
    if promote != want_promote:
        raise RuntimeError(message)

    ...
```
"""

See the full comment at https://github.com/freeipa/freeipa/pull/416#issuecomment-276334410


More information about the Freeipa-devel mailing list