diff --git a/app/models/vm_or_template/operations.rb b/app/models/vm_or_template/operations.rb index a9500cf414b8..353d6a0618da 100644 --- a/app/models/vm_or_template/operations.rb +++ b/app/models/vm_or_template/operations.rb @@ -142,7 +142,7 @@ def validate_vm_control_shelve_offload_action supports :terminate do msg = unsupported_reason(:control) unless supports_control? - msg ||= _("Provider doesn't support vm_destroy") unless ext_management_system.respond_to?(:vm_destroy) + msg ||= _("Provider doesn't support vm_destroy") unless respond_to?(:vm_destroy) unsupported_reason_add(:terminate, msg) if msg end end