From 34e836c31879ca8b93e5d983d9bb3ad2e21b5ce0 Mon Sep 17 00:00:00 2001 From: Aparna Karve Date: Thu, 23 Aug 2018 14:27:41 -0700 Subject: [PATCH] use the replacement method --- app/controllers/api/transformation_mappings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/transformation_mappings_controller.rb b/app/controllers/api/transformation_mappings_controller.rb index af30ae87b6..1d34496945 100644 --- a/app/controllers/api/transformation_mappings_controller.rb +++ b/app/controllers/api/transformation_mappings_controller.rb @@ -12,7 +12,7 @@ def create_resource(_type, _id, data = {}) def validate_vms_resource(type, id, data = {}) transformation_mapping = resource_search(id, type, collection_class(type)) - (transformation_mapping.validate_vms(data["import"]) || {}).tap do |res| + (transformation_mapping.search_vms_and_validate(data["import"]) || {}).tap do |res| %w(valid_vms invalid_vms conflict_vms).each do |key| next unless res.key?(key) res[key].each do |entry|