Skip to content

Commit 9d636c5

Browse files
Parse last_modified time only if it is valid
fixes fog#426
1 parent ce715f6 commit 9d636c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fog/azurerm/utilities/general.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def parse_storage_object(object)
156156
end
157157
end
158158
end
159-
160-
data['last_modified'] = Time.parse(data['last_modified'])
159+
last_modified = data['last_modified']
160+
data['last_modified'] = Time.parse(last_modified) if last_modified
161161
data['etag'].delete!('"')
162162
data
163163
end

0 commit comments

Comments
 (0)