Skip to content

Commit

Permalink
Merge pull request #2001 from zerbitx/sleep-wake-cli
Browse files Browse the repository at this point in the history
Sync changes from a backport
  • Loading branch information
zerbitx authored Jul 30, 2024
2 parents 8e2d13c + 40d303b commit e11e204
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (c *Config) Distro() string {
}

func (c *Config) IsConfiguredForSleepMode() bool {
if c != nil && c.External["platform"] == nil {
if c != nil && c.External != nil && c.External["platform"] == nil {
return false
}

Expand Down
1 change: 0 additions & 1 deletion pkg/cli/add_vcluster_helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ func AddVClusterHelm(
"Yes. Wake and add now.",
},
})

if err != nil {
return fmt.Errorf("failed to capture your response %w", err)
}
Expand Down

0 comments on commit e11e204

Please sign in to comment.