From ad89cd51457ec1dc8a55736f042c96064c6126b2 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Thu, 18 Jan 2018 13:46:55 -0500 Subject: [PATCH] #delete skips callbacks, prefer #destroy --- .../embedded_ansible/provider/default_ansible_objects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/embedded_ansible/provider/default_ansible_objects.rb b/app/models/manageiq/providers/embedded_ansible/provider/default_ansible_objects.rb index d4fb7f75db9..e0d38d33efe 100644 --- a/app/models/manageiq/providers/embedded_ansible/provider/default_ansible_objects.rb +++ b/app/models/manageiq/providers/embedded_ansible/provider/default_ansible_objects.rb @@ -40,7 +40,7 @@ def default_host=(host) end def delete_ansible_object(name) - default_ansible_objects.find_by(:name => name).try(:delete) + default_ansible_objects.find_by(:name => name).try(:destroy) end private