diff --git a/requirements.txt b/requirements.txt index f79b793..d1c4ad6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ tabulate==0.9.0 -hcloud==2.5.2 +hcloud==2.5.4 rich==13.9.4 diff --git a/shcloud.py b/shcloud.py index 49c186f..0823b81 100755 --- a/shcloud.py +++ b/shcloud.py @@ -214,7 +214,16 @@ if args.action == "create": enable_ipv4=True, enable_ipv6=True, ), + start_after_create=False, ) track_progress(response.action.id, response.action.command) for a in response.next_actions: track_progress(a.id, a.command) + # save server to var + server = response.server + # attach volume + response = client.volumes.attach(volume=volume, server=server) + track_progress(response.id, response.command) + # start server + response = client.servers.power_on(server) + track_progress(response.id, response.command) \ No newline at end of file