Skip to content

Commit

Permalink
Merge pull request ManageIQ#19864 from fdupont-redhat/v2v_conversion_…
Browse files Browse the repository at this point in the history
…host_fix_extra_vars

Split extra vars for Ansible playbooks
  • Loading branch information
Fryguy authored Feb 24, 2020
2 parents 8357892 + ae80fea commit d61bf49
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 @@ -454,7 +454,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

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

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

0 comments on commit d61bf49

Please sign in to comment.