Skip to content

Commit

Permalink
Parse last_modified time only if it is valid
Browse files Browse the repository at this point in the history
fixes fog#426
  • Loading branch information
krishnasrinivas committed Feb 26, 2020
1 parent ce715f6 commit 9d636c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fog/azurerm/utilities/general.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def parse_storage_object(object)
end
end
end

data['last_modified'] = Time.parse(data['last_modified'])
last_modified = data['last_modified']
data['last_modified'] = Time.parse(last_modified) if last_modified
data['etag'].delete!('"')
data
end
Expand Down

0 comments on commit 9d636c5

Please sign in to comment.