Skip to content

Commit

Permalink
Error msg must start with small letters plus minor formatting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
anathoodell committed Dec 19, 2024
1 parent 52e9bd5 commit 09fe8db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/drivers/powerflex.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ func ValidateZonesInSecret(ctx context.Context, kube client.Client, namespace st
return fmt.Errorf("invalid value for SystemID")
}
if reflect.DeepEqual(configParam.Zone, Zone{}) {
log.Infof("Zone is not specified for SystemID:", configParam.SystemID)
log.Infof("Zone is not specified for SystemID: %s", configParam.SystemID)
} else {
log.Infof("Zone is specified for SystemID:", configParam.SystemID)
log.Infof("Zone is specified for SystemID: %s", configParam.SystemID)
if configParam.Zone.LabelKey == "" {
return fmt.Errorf("Zone LabelKey is empty or not specified for SystemID: %s",
return fmt.Errorf("zone LabelKey is empty or not specified for SystemID: %s",
configParam.SystemID)
}

Expand All @@ -413,7 +413,7 @@ func ValidateZonesInSecret(ctx context.Context, kube client.Client, namespace st
}

if configParam.Zone.Name == "" {
return fmt.Errorf("Zone name is empty or not specified for SystemID: %s",
return fmt.Errorf("zone name is empty or not specified for SystemID: %s",
configParam.SystemID)
}
numArraysWithZone++
Expand Down

0 comments on commit 09fe8db

Please sign in to comment.