Skip to content

Commit

Permalink
Adapt to changes of PR #101
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Nov 10, 2024
1 parent 681c729 commit bf43aa5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/rookify/modules/migrate_rgws/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def _get_rgw_daemon_hosts(self) -> List[str]:
state_data = self.machine.get_preflight_state("AnalyzeCephHandler").data

return self._get_rgw_daemon_hosts_of_map(
state_data["report"]["servicemap"]["services"]["rgw"]["daemons"]
state_data["report"]["servicemap"]["services"]
.get("rgw", {})
.get("daemons", {})
)

def _get_rgw_daemon_hosts_of_map(
Expand Down Expand Up @@ -142,7 +144,9 @@ def _migrate_rgw(self, rgw_host: str) -> None:
ceph_status = self.ceph.mon_command("status")

rgw_daemon_hosts = self._get_rgw_daemon_hosts_of_map(
ceph_status["servicemap"]["services"]["rgw"]["daemons"]
ceph_status["servicemap"]["services"]
.get("rgw", {})
.get("daemons", {})
)

if rgw_host in rgw_daemon_hosts:
Expand Down

0 comments on commit bf43aa5

Please sign in to comment.