Change describe_state to use names instead of uuids

This commit is contained in:
Marek Wolan
2023-12-14 11:19:32 +00:00
parent e93fb85672
commit 1ec7df1170
5 changed files with 31 additions and 11 deletions

View File

@@ -102,7 +102,7 @@ class DomainController(SimComponent):
:rtype: Dict
"""
state = super().describe_state()
state.update({"accounts": {uuid: acct.describe_state() for uuid, acct in self.accounts.items()}})
state.update({"accounts": {acct.username: acct.describe_state() for acct in self.accounts.values()}})
return state
def _register_account(self, account: Account) -> None: