lib/fog/oraclecloud/models/java/instances.rb in fog-oraclecloud-0.1.1 vs lib/fog/oraclecloud/models/java/instances.rb in fog-oraclecloud-0.1.2
- old
+ new
@@ -11,14 +11,10 @@
data = service.list_instances().body['services']
load(data)
end
def get(service_name)
- begin
- new(service.get_instance(service_name).body)
- rescue Fog::OracleCloud::Java::NotFound
- nil
- end
+ new(service.get_instance(service_name).body)
end
end
end