Skip to content

Commit

Permalink
ONTAP REST Qtree unit test
Browse files Browse the repository at this point in the history
ONTAP REST unit test
  • Loading branch information
agagan authored Nov 7, 2023
1 parent a9a82bf commit 9f87e41
Show file tree
Hide file tree
Showing 2 changed files with 1,950 additions and 1 deletion.
2 changes: 1 addition & 1 deletion storage_drivers/ontap/api/ontap_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5591,7 +5591,7 @@ func (c RestClient) getSMBShareByName(ctx context.Context, shareName string) (*m
if err != nil {
return nil, err
}
if result == nil || result.Payload == nil || *result.Payload.NumRecords == 0 {
if result == nil || result.Payload == nil || result.Payload.NumRecords == nil || *result.Payload.NumRecords == 0 {
return nil, nil
}
// The specified SMB share already exists
Expand Down
Loading

0 comments on commit 9f87e41

Please sign in to comment.