Skip to content

Commit 8df7771

Browse files
committed
Fix build issues
1 parent 1ca7c8a commit 8df7771

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/init.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ func (cmd *InitCmd) useCloudProvider() bool {
361361
if len(providerConfig) > 1 {
362362
cloudProvider := "("
363363

364-
for name, _ := range providerConfig {
364+
for name := range providerConfig {
365365
if len(cloudProvider) > 1 {
366-
", "
366+
cloudProvider += ", "
367367
}
368368

369369
cloudProvider += name
@@ -373,7 +373,7 @@ func (cmd *InitCmd) useCloudProvider() bool {
373373
cloudProviderSelected := ""
374374

375375
for _, ok := providerConfig[cloudProviderSelected]; ok == false && cloudProviderSelected != "no"; {
376-
cloudProviderSelected := *stdinutil.GetFromStdin(&stdinutil.GetFromStdinParams{
376+
cloudProviderSelected = *stdinutil.GetFromStdin(&stdinutil.GetFromStdinParams{
377377
Question: "Do you want to use a cloud provider? (no to skip) " + cloudProvider,
378378
DefaultValue: cloud.DevSpaceCloudProviderName,
379379
})
@@ -410,7 +410,7 @@ func (cmd *InitCmd) useCloudProvider() bool {
410410
ValidationRegexPattern: "^(yes)|(no)$",
411411
}) == "yes"
412412

413-
cmd.config.Cluster.CloudProvider = &cloud.DevSpaceCloudProviderName
413+
cmd.config.Cluster.CloudProvider = configutil.String(cloud.DevSpaceCloudProviderName)
414414
cmd.config.Cluster.UseKubeConfig = &addToContext
415415

416416
err := cloud.Update(providerConfig, cmd.config, true)
@@ -430,7 +430,7 @@ func (cmd *InitCmd) configureKubernetes() {
430430
useKubeConfig := false
431431

432432
// Check if devspace cloud should be used
433-
if cmd.useDevSpaceCloud() {
433+
if cmd.useCloudProvider() {
434434
return
435435
}
436436

0 commit comments

Comments
 (0)