Skip to content

Commit

Permalink
Fix: create playload
Browse files Browse the repository at this point in the history
  • Loading branch information
1yam committed Jun 19, 2024
1 parent bef04cb commit 4bf31be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/aleph/sdk/client/vmclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ async def _generate_pubkey_signature_header(self) -> str:

def create_payload(self, vm_id: str, operation: str) -> Dict[str, str]:
path = (
f"/control/machine/logs/{vm_id}"
if operation == "logs"
else f"/control/machine/{vm_id}/{operation}"
f"/control/machine/{vm_id}/{operation}"
)
payload = {
"time": datetime.datetime.utcnow().isoformat() + "Z",
Expand Down

0 comments on commit 4bf31be

Please sign in to comment.