From 9d636c5aa1b1f64855addc66cf971c7ceb87efcb Mon Sep 17 00:00:00 2001 From: Krishna Srinivas <634494+krishnasrinivas@users.noreply.github.com> Date: Tue, 25 Feb 2020 11:28:02 -0800 Subject: [PATCH] Parse last_modified time only if it is valid fixes #426 --- lib/fog/azurerm/utilities/general.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/azurerm/utilities/general.rb b/lib/fog/azurerm/utilities/general.rb index ba9ccd657..a676b6b0f 100755 --- a/lib/fog/azurerm/utilities/general.rb +++ b/lib/fog/azurerm/utilities/general.rb @@ -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