Skip to content

Commit

Permalink
Validatading AccessTier #28
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible committed Feb 8, 2023
1 parent ad7a538 commit 724a178
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/scanners/st.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ func (c *StorageScanner) Scan(resourceGroupName string) ([]IAzureServiceResult,
}

sku := string(*storage.SKU.Name)
tier := string(*storage.Properties.AccessTier)
tier := ""
if storage.Properties != nil {
if storage.Properties.AccessTier != nil {
tier = string(*storage.Properties.AccessTier)
}
}
zones := false
if strings.Contains(sku, "ZRS") {
zones = true
Expand Down

0 comments on commit 724a178

Please sign in to comment.