From 503517127f761a7a2b12e449861bd10617c7df6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 31 Aug 2020 07:41:09 +0200 Subject: [PATCH] Fix server creation --image was not used correctly (#272) --- cli/server_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/server_create.go b/cli/server_create.go index cb549db2..b5fee845 100644 --- a/cli/server_create.go +++ b/cli/server_create.go @@ -163,7 +163,7 @@ func buildUserData(files []string) (string, error) { func optsFromFlags(cli *CLI, flags *pflag.FlagSet) (opts hcloud.ServerCreateOpts, err error) { name, _ := flags.GetString("name") serverType, _ := flags.GetString("type") - imageIDorName, _ := flags.GetString("imageIDorName") + imageIDorName, _ := flags.GetString("image") location, _ := flags.GetString("location") datacenter, _ := flags.GetString("datacenter") userDataFiles, _ := flags.GetStringArray("user-data-from-file")