Skip to content

Commit

Permalink
Use source_transport_method
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Apr 15, 2019
1 parent 3d6e5ff commit 707d7f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/conversion_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def check_conversion_host_role
playbook = "/usr/share/v2v-conversion-host-ansible/playbooks/conversion_host_check.yml"
extra_vars = {
:v2v_host_type => resource.ext_management_system.emstype,
:v2v_transport_method => vddk_transport_supported ? 'vddk' : 'ssh'
:v2v_transport_method => source_transport_method
}
ansible_playbook(playbook, extra_vars, false)
tag_resource_as('enabled')
Expand All @@ -187,7 +187,7 @@ def enable_conversion_host_role(vmware_vddk_package_url = nil, vmware_ssh_privat
playbook = "/usr/share/v2v-conversion-host-ansible/playbooks/conversion_host_enable.yml"
extra_vars = {
:v2v_host_type => resource.ext_management_system.emstype,
:v2v_transport_method => vddk_transport_supported ? 'vddk' : 'ssh',
:v2v_transport_method => source_transport_method,
:v2v_vddk_package_url => vmware_vddk_package_url,
:v2v_ssh_private_key => vmware_ssh_private_key,
:v2v_ca_bundle => resource.ext_management_system.connection_configurations['default'].certificate_authority
Expand All @@ -201,7 +201,7 @@ def disable_conversion_host_role
playbook = "/usr/share/v2v-conversion-host-ansible/playbooks/conversion_host_disable.yml"
extra_vars = {
:v2v_host_type => resource.ext_management_system.emstype,
:v2v_transport_method => vddk_transport_supported ? 'vddk' : 'ssh'
:v2v_transport_method => source_transport_method
}
ansible_playbook(playbook, extra_vars)
ensure
Expand Down

0 comments on commit 707d7f5

Please sign in to comment.