lib/libis/services/rosetta/collection_handler.rb in libis-services-1.0.5 vs lib/libis/services/rosetta/collection_handler.rb in libis-services-1.0.6
- old
+ new
@@ -24,10 +24,11 @@
request_object :get_collection_by_name, Rosetta::CollectionInfo, pds_handle: @pds_handle, collection_path: path
end
def create(collection_info)
collection_info = collection_info.to_hash.cleanup if collection_info.is_a? CollectionInfo
- call :create_collection, pds_handle: @pds_handle, collection: collection_info
+ result = call :create_collection, pds_handle: @pds_handle, collection: collection_info
+ result[:return]
end
def delete(id)
call :delete_collection, pds_handle: @pds_handle, collection_id: id
end
\ No newline at end of file