lib/fog/oraclecloud/requests/java/create_instance.rb in fog-oraclecloud-0.1.11 vs lib/fog/oraclecloud/requests/java/create_instance.rb in fog-oraclecloud-0.1.12
- old
+ new
@@ -73,10 +73,11 @@
"hostname": ip,
"status": "Ready",
"storageAllocated": 74752,
"creationDate": Time.now.strftime('%Y-%b-%dT%H:%M:%S')
}
- self.data[:servers][data['serviceName']] = [server]
+ self.data[:servers][data['serviceName']] = {}
+ self.data[:servers][data['serviceName']][server[:name]] = server
response.status = 202
response
end
end