workaround hcloud api issue
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
75e4e9026b
commit
c3d0e7ecdf
1 changed files with 9 additions and 0 deletions
|
@ -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