Skip to content

Commit 7253dbc

Browse files
authored
Merge pull request #113 from 2ndWatch/use_id
Used name instead of id.
2 parents 607b72f + 6879a8c commit 7253dbc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cloudendure/cloudendure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,9 @@ def launch(self) -> Dict[str, Any]:
542542
self.event_handler.add_event(Event.EVENT_ALREADY_LAUNCHED, machine_name=_machine)
543543
continue
544544
machine_data = {
545-
"items": [{"machineId": ce_name}],
545+
"items": [{"machineId": machine["id"]}],
546546
"launchType": "TEST",
547547
}
548-
549548
if machine_data:
550549
result: Response = self.api.api_call(
551550
f"projects/{self.project_id}/launchMachines", method="post", data=json.dumps(machine_data),

0 commit comments

Comments
 (0)