Skip to content

Commit

Permalink
fix comments and error messages in values and nodeProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
VamsiSiddu-7 committed Feb 3, 2023
1 parent f18f98c commit ae9719b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions helm/csi-vxflexos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ node:
approveSDC:
# enabled: Enable/Disable SDC approval
#Allowed values:
# true: enable approval
# false: disable approval
# true: Driver will attempt to approve restricted SDC by GUID during setup
# false: Driver will not attempt to approve restricted SDC by GUID during setup
# Default value: false
enabled: false

Expand Down
5 changes: 2 additions & 3 deletions service/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (s *service) approveSDC(opts Opts) error {
system := s.systems[systemID]

if system == nil {
return nil
continue
}

//fetch SDC details
Expand All @@ -456,8 +456,7 @@ func (s *service) approveSDC(opts Opts) error {
}
} else {
if !sdc.Sdc.SdcApproved {
return status.Errorf(codes.FailedPrecondition,
"Array RestrictedSdcMode is %s, driver only supports GUID RestrictedSdcMode cannot approve SDC %s",
return status.Errorf(codes.FailedPrecondition, "Array RestrictedSdcMode is %s, driver only supports GUID RestrictedSdcMode cannot approve SDC %s",
system.System.RestrictedSdcMode, sdc.Sdc.SdcGUID)
}
Log.Warnf("Array RestrictedSdcMode is %s, driver only supports GUID RestrictedSdcMode If SDC becomes restricted again, driver will not be able to approve",
Expand Down

0 comments on commit ae9719b

Please sign in to comment.