diff options
Diffstat (limited to 'rwa/support/sessionservice/session.py')
-rw-r--r-- | rwa/support/sessionservice/session.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rwa/support/sessionservice/session.py b/rwa/support/sessionservice/session.py index 53bde2d..d3aa57c 100644 --- a/rwa/support/sessionservice/session.py +++ b/rwa/support/sessionservice/session.py @@ -51,8 +51,8 @@ def get_desktop_dir(): return output.strip().replace("\n", "") -def combine(host_id: str, session_id: int): - return f"{host_id}-{session_id}" +def combine(host_uuid: str, session_id: int): + return f"{host_uuid}-{session_id}" class Session: @@ -65,7 +65,7 @@ class Session: def __init__(self, host_object: dict, trigger_port: int, mockup_session: bool = False): self.host_object = host_object self.host_url = self.host_object["url"] - self.host_id = self.host_object["id"] + self.host_uuid = self.host_object["id"] self.BASE_URL = self.host_url + API_PATH self.REGISTER_URL = self.BASE_URL + "register/" self.STOP_URL = self.BASE_URL + "stop/" @@ -86,7 +86,7 @@ class Session: @property def combined_id(self): - return combine(self.host_id, self.session_id) + return combine(self.host_uuid, self.session_id) @property def pid(self) -> int: @@ -307,7 +307,7 @@ class Session: @property def client_meta(self) -> Dict[str, Union[str, int]]: return { - "host_id": self.host_id, + "host_uuid": self.host_uuid, "session_id": self.session_id, "url": self.web_url, "pin": self.pin, @@ -315,4 +315,4 @@ class Session: @property def status(self) -> Dict[str, Union[str, int]]: - return {"host_id": self.host_id, "session_id": self.session_id, "status": self.status_text} + return {"host_uuid": self.host_uuid, "session_id": self.session_id, "status": self.status_text} |