Skip to content

Commit

Permalink
Merge pull request #423 from inspec/f/account_storage_fix
Browse files Browse the repository at this point in the history
Account Storage Resource Fix
  • Loading branch information
ppradhan9 authored Aug 6, 2021
2 parents 8c7a067 + d409364 commit b973e05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/azure_storage_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def has_recently_generated_access_key?
upper_bound = to_utc(now)
lower_bound = to_utc(now - ninety_days_ago)

if properties.creationTime > lower_bound
return true
end

filter = "resourceId eq '#{id}' and "\
"eventTimestamp ge '#{lower_bound}' and "\
"eventTimestamp le '#{upper_bound}' and "\
Expand Down

0 comments on commit b973e05

Please sign in to comment.