lib/fog/oraclecloud/requests/database/recover_instance.rb in fog-oraclecloud-0.1.3 vs lib/fog/oraclecloud/requests/database/recover_instance.rb in fog-oraclecloud-0.1.4
- old
+ new
@@ -24,9 +24,12 @@
def recover_instance(service_name, type=nil, value=nil)
response = Excon::Response.new
if !self.data[:recoveries][service_name].is_a? Array then
self.data[:recoveries][service_name] = []
+ end
+
+ if !self.data[:created_at][:recoveries]
self.data[:created_at][:recoveries] = {}
self.data[:created_at][:recoveries][service_name] = []
end
# Find the backup first