Compare commits
2 commits
cffa3f9919
...
c3d0e7ecdf
Author | SHA1 | Date | |
---|---|---|---|
c3d0e7ecdf | |||
75e4e9026b |
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
||||||
tabulate==0.9.0
|
tabulate==0.9.0
|
||||||
hcloud==2.5.2
|
hcloud==2.5.4
|
||||||
rich==13.9.4
|
rich==13.9.4
|
||||||
|
|
|
@ -214,7 +214,16 @@ if args.action == "create":
|
||||||
enable_ipv4=True,
|
enable_ipv4=True,
|
||||||
enable_ipv6=True,
|
enable_ipv6=True,
|
||||||
),
|
),
|
||||||
|
start_after_create=False,
|
||||||
)
|
)
|
||||||
track_progress(response.action.id, response.action.command)
|
track_progress(response.action.id, response.action.command)
|
||||||
for a in response.next_actions:
|
for a in response.next_actions:
|
||||||
track_progress(a.id, a.command)
|
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)
|
Loading…
Add table
Add a link
Reference in a new issue