File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,7 @@ async def _generate_pubkey_signature_header(self) -> str:
6767
6868 def create_payload (self , vm_id : str , operation : str ) -> Dict [str , str ]:
6969 path = (
70- f"/logs/{ vm_id } "
71- if operation == "logs"
72- else f"/control/machine/{ vm_id } /{ operation } "
70+ f"/control/machine/{ vm_id } /{ operation } "
7371 )
7472 payload = {
7573 "time" : datetime .datetime .utcnow ().isoformat () + "Z" ,
@@ -134,8 +132,8 @@ async def get_logs(self, vm_id):
134132
135133 payload = self .create_payload (vm_id , "logs" )
136134 signed_operation = self .sign_payload (payload , self .ephemeral_key )
137-
138- ws_url , header = await self ._generate_header ( vm_id = vm_id , operation = "logs" )
135+ path = payload [ "path" ]
136+ ws_url = f" { self .node_url } { path } "
139137
140138 async with self .session .ws_connect (ws_url ) as ws :
141139 auth_message = {
You can’t perform that action at this time.
0 commit comments