From d1ca2441ece950a82451e2c135d25a9dc42e7e0f Mon Sep 17 00:00:00 2001 From: Hilda Stastna Date: Wed, 15 Aug 2018 18:45:22 +0200 Subject: [PATCH] Fix Refresh Relationships and Power States button for VMs, Instances --- app/models/mixins/supports_feature_mixin.rb | 1 + app/models/vm_or_template.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/mixins/supports_feature_mixin.rb b/app/models/mixins/supports_feature_mixin.rb index 540cad1d8868..481981180d28 100644 --- a/app/models/mixins/supports_feature_mixin.rb +++ b/app/models/mixins/supports_feature_mixin.rb @@ -110,6 +110,7 @@ module SupportsFeatureMixin :reconfigure_disksize => 'Reconfigure Virtual Machines Disk Size', :reconfigure_network_adapters => 'Reconfigure Network Adapters', :reconfigure_cdroms => 'Reconfigure Virtual Machines CD/DVDs', + :refresh_ems => 'Refresh Relationships and Power States', :refresh_network_interfaces => 'Refresh Network Interfaces for a Host', :refresh_new_target => 'Refresh non-existing record', :regions => 'Regions of a Provider', diff --git a/app/models/vm_or_template.rb b/app/models/vm_or_template.rb index 28f35ac7f531..24584d064b54 100644 --- a/app/models/vm_or_template.rb +++ b/app/models/vm_or_template.rb @@ -1726,6 +1726,7 @@ def self.includes_template?(ids) supports_not :snapshots supports :destroy + supports :refresh_ems # Stop showing Reconfigure VM task unless the subclass allows def reconfigurable?