Skip to content

Commit

Permalink
Revert "Merge pull request ManageIQ#19864 from fdupont-redhat/v2v_con…
Browse files Browse the repository at this point in the history
…version_host_fix_extra_vars"

This reverts commit d61bf49, reversing
changes made to 8357892.
  • Loading branch information
simaishi committed May 13, 2020
1 parent e117512 commit f92f692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/conversion_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def ansible_playbook(playbook, extra_vars = {}, miq_task_id = nil, auth_type = '
raise MiqException::MiqInvalidCredentialsError, _("Unknown auth type: %{auth_type}") % {:auth_type => auth.authtype}
end

extra_vars.each { |k, v| params << {:extra_vars= => "#{k}='#{v}'"} }
params << {:extra_vars => "'#{extra_vars.to_json}'"}

command = AwesomeSpawn.build_command_line("ansible-playbook", params)
result = AwesomeSpawn.run(command)
Expand Down

0 comments on commit f92f692

Please sign in to comment.