From 05c3dea510b2a1ab7cfe5dd001e42dddb556b233 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Mon, 3 Dec 2018 10:03:29 -0700 Subject: [PATCH] Add supports_conversion_host to Vm. --- app/models/manageiq/providers/openstack/cloud_manager/vm.rb | 1 + .../manageiq/providers/openstack/cloud_manager/vm_spec.rb | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/models/manageiq/providers/openstack/cloud_manager/vm.rb b/app/models/manageiq/providers/openstack/cloud_manager/vm.rb index ff2d39e1e..04b037a93 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/vm.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/vm.rb @@ -15,6 +15,7 @@ class ManageIQ::Providers::Openstack::CloudManager::Vm < ManageIQ::Providers::Cl end supports :snapshots + supports :conversion_host POWER_STATES = { "ACTIVE" => "on", diff --git a/spec/models/manageiq/providers/openstack/cloud_manager/vm_spec.rb b/spec/models/manageiq/providers/openstack/cloud_manager/vm_spec.rb index 38716d667..21e30b831 100644 --- a/spec/models/manageiq/providers/openstack/cloud_manager/vm_spec.rb +++ b/spec/models/manageiq/providers/openstack/cloud_manager/vm_spec.rb @@ -156,6 +156,12 @@ expect(vm.supports_revert_to_snapshot?).to eq false end end + + context "v2v actions" do + it "supports conversion_host" do + expect(vm.supports_conversion_host?).to eq true + end + end end context "#is_available?" do