Skip to content

Commit

Permalink
use the replacement method
Browse files Browse the repository at this point in the history
  • Loading branch information
AparnaKarve committed Sep 20, 2018
1 parent 98bdcbf commit d03f754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/transformation_mappings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit d03f754

Please sign in to comment.