Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit ac40e55

Browse files
committed
Return representive state data for module migrate_mons
Signed-off-by: Tobias Wolf <[email protected]>
1 parent cc35e40 commit ac40e55

File tree

1 file changed

+9
-0
lines changed
  • src/rookify/modules/migrate_mons

1 file changed

+9
-0
lines changed

src/rookify/modules/migrate_mons/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ def execute(self) -> None:
3232
for mon in state_data["mon"]["dump"]["mons"]:
3333
self._migrate_mon(mon)
3434

35+
def get_readable_key_value_state(self) -> Dict[str, str]:
36+
state_data = self.machine.get_preflight_state("AnalyzeCephHandler").data
37+
38+
return {
39+
"ceph mon daemons": self._get_readable_json_dump(
40+
state_data["mon"]["dump"]["mons"]
41+
)
42+
}
43+
3544
def _migrate_mon(self, mon: Dict[str, Any]) -> None:
3645
migrated_mons = self.machine.get_execution_state_data(
3746
"MigrateMonsHandler", "migrated_mons", default_value=[]

0 commit comments

Comments
 (0)