]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
library: retrieve realm id for zone/zonegroup v6.0.0alpha7
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 22 Jan 2021 17:45:32 +0000 (12:45 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 29 Jan 2021 20:07:39 +0000 (21:07 +0100)
commit195159ecef8d166cb03c8d9d31734946df849297
treefef5291e4068bb9a0c3a9ce469295eac1c0e6898
parent2734a12d443c923679c65407d3d38d67ff3d364e
library: retrieve realm id for zone/zonegroup

When the zonegroup or the zone doesn't have a realm associated then
it's not possible to modify that ressource.
This patch allows to retrieve the current realm id and compare it to
the realm id from the realm in parameter.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
library/radosgw_zone.py
library/radosgw_zonegroup.py
tests/library/test_radosgw_zone.py
tests/library/test_radosgw_zonegroup.py