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 #426
  • Loading branch information
krishnasrinivas committed Feb 26, 2020
1 parent ce715f6 commit bcd31d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/azurerm/utilities/general.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def parse_storage_object(object)
end
end

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

0 comments on commit bcd31d7

Please sign in to comment.