Skip to content

Commit

Permalink
Merge pull request #18772 from fdupont-redhat/v2v_conversion_host_pas…
Browse files Browse the repository at this point in the history
…s_extra_vars_as_json

[V2V] Conversion Host - Use JSON format for extra vars
  • Loading branch information
agrare authored May 16, 2019
2 parents 23d2532 + d796ffd commit ca1fe1f
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 @@ -332,7 +332,7 @@ def ansible_playbook(playbook, extra_vars = {}, miq_task_id = nil, auth_type = '
raise MiqException::MiqInvalidCredentialsError, _("Unknown auth type: #{auth.authtype}")
end

extra_vars.each { |k, v| command << " --extra-vars '#{k}=#{v}'" }
command << " --extra-vars '#{extra_vars.to_json}'"

result = AwesomeSpawn.run(command)

Expand Down

0 comments on commit ca1fe1f

Please sign in to comment.