Skip to content

Commit

Permalink
fixed keyname lookup issue #2158
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviGopal authored and hkantare committed Jan 21, 2021
1 parent 6d6c7f2 commit 1831c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibm/resource_ibm_storage_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ func getSaaSPerformSpacePrice(productItems []datatypes.Product_Item, size int) (
}

keyname := fmt.Sprintf("%d_%d_GBS", capacityMinimum, capacityMaximum)
if *item.KeyName != keyname {
if item.KeyName == nil || !strings.Contains(*item.KeyName, keyname) {
continue
}

Expand Down Expand Up @@ -1291,7 +1291,7 @@ func getSaaSEnduranceSpacePrice(productItems []datatypes.Product_Item, size int,

for _, item := range productItems {

if *item.KeyName != keyName {
if item.KeyName == nil || !strings.Contains(*item.KeyName, keyName) {
continue
}

Expand Down

0 comments on commit 1831c92

Please sign in to comment.