fix(core): update

This commit is contained in:
2024-02-18 01:17:15 +01:00
parent e7babf5222
commit d2b1018234
6 changed files with 54 additions and 9 deletions
+3 -2
View File
@@ -8,7 +8,8 @@ export class HetznerServer {
hetznerAccountRefArg: HetznerAccount,
optionsArg: {
name: string;
location: 'nbg1';
type: types.THetznerCloudServerName;
location: types.THetznerCloudLocationName;
labels: {[key: string]: string},
}
) {
@@ -18,7 +19,7 @@ export class HetznerServer {
const createServerPayload: types.TServerCreateRequestBody = {
name: optionsArg.name,
image: 'ubuntu-22.04',
server_type: 'cx11',
server_type: optionsArg.type,
start_after_create: true,
labels: optionsArg.labels || {} as any,
location: optionsArg.location,