From 1de7b35994a4b5da7a923a91983688a7504e9de8 Mon Sep 17 00:00:00 2001 From: Samuel Lucidi Date: Mon, 3 Dec 2018 12:39:46 -0500 Subject: [PATCH] Merge pull request #407 from djberg96/supports_conversion_host Add supports_conversion_host to Vm (cherry picked from commit 75c73724e034c062566ac789323bcf7c1d691ec5) https://bugzilla.redhat.com/show_bug.cgi?id=1694229 --- 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