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