From 8757e31657d2954a23bce793e5d273e3b5d96d2b Mon Sep 17 00:00:00 2001 From: Marcel Hild Date: Tue, 5 Jul 2016 15:19:52 +0200 Subject: [PATCH] refactor discovery to SupportsFeature style --- app/models/manageiq/providers/amazon/cloud_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/amazon/cloud_manager.rb b/app/models/manageiq/providers/amazon/cloud_manager.rb index 670ba20b4..4ef9e9aec 100644 --- a/app/models/manageiq/providers/amazon/cloud_manager.rb +++ b/app/models/manageiq/providers/amazon/cloud_manager.rb @@ -20,7 +20,6 @@ class ManageIQ::Providers::Amazon::CloudManager < ManageIQ::Providers::CloudMana require_nested :Vm OrchestrationTemplateCfn.register_eligible_manager(self) - ExtManagementSystem.register_cloud_discovery_type('amazon' => 'ec2') include ManageIQ::Providers::Amazon::ManagerMixin @@ -45,6 +44,7 @@ class ManageIQ::Providers::Amazon::CloudManager < ManageIQ::Providers::CloudMana before_validation :ensure_managers supports :provisioning + supports :discovery def ensure_managers build_network_manager unless network_manager