fix panic in status cmd (#2625)

This commit is contained in:
Adrian Stobbe 2023-11-22 08:31:37 +01:00 committed by GitHub
parent 0c1e6e97e4
commit 9af514d08e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 13 deletions

View file

@ -84,6 +84,9 @@ func (s *statusCmd) status(
if errors.As(err, &configValidationErr) {
cmd.PrintErrln(configValidationErr.LongMessage())
}
if err != nil {
return fmt.Errorf("loading config file: %w", err)
}
nodeVersion, err := kubeClient.GetConstellationVersion(cmd.Context())
if err != nil {