aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

commit 48bf5fcd22607913c146fc94100d4390748f1cd3
parent c79efb2b4144447de7df25f3d80b972ebee63142
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sat,  5 Dec 2020 12:09:51 +0100

return VM ID after startup

Diffstat:
Maetherscale/client.py | 2+-
Maetherscale/computing.py | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/aetherscale/client.py b/aetherscale/client.py @@ -79,7 +79,7 @@ def main(): 'command': 'list-vms', } elif args.subparser_name == 'start-vm': - response_expected = False + response_expected = True data = { 'command': 'start-vm', 'options': { diff --git a/aetherscale/computing.py b/aetherscale/computing.py @@ -187,6 +187,10 @@ def callback(ch, method, properties, body): execution.start_systemd_unit(unit_name) print(f'Started VM "{vm_id}"') + response = { + 'status': 'starting', + 'vm-id': vm_id, + } ch.basic_ack(delivery_tag=method.delivery_tag)