Skip to content

Commit

Permalink
Merge pull request #19467 from thearifismail/vm_warm_migrate_option
Browse files Browse the repository at this point in the history
[V2V] Added warm migration eligibility option to VM during its validation

(cherry picked from commit 6a04684)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1790538
  • Loading branch information
Martin Povolny authored and simaishi committed Feb 21, 2020
1 parent 5d23be7 commit 79fc30a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/models/transformation_mapping/vm_migration_validator.rb
Expand Up @@ -157,11 +157,12 @@ def initialize(vm_name, vm, status, reason)

if vm.present?
options.merge!(
"cluster" => vm.ems_cluster.try(:name) || '',
"path" => vm.ext_management_system ? "#{vm.ext_management_system.name}/#{vm.v_parent_blue_folder_display_path}" : '',
"allocated_size" => vm.allocated_disk_storage,
"id" => vm.id.to_s,
"ems_cluster_id" => vm.ems_cluster_id.to_s
"cluster" => vm.ems_cluster.try(:name) || '',
"path" => vm.ext_management_system ? "#{vm.ext_management_system.name}/#{vm.v_parent_blue_folder_display_path}" : '',
"allocated_size" => vm.allocated_disk_storage,
"id" => vm.id.to_s,
"ems_cluster_id" => vm.ems_cluster_id.to_s,
"warm_migration_compatible" => vm.supports_warm_migrate?
)
end

Expand Down

0 comments on commit 79fc30a

Please sign in to comment.