Skip to content

Commit

Permalink
Conversion Host - Use JSON format for extra vars
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed May 16, 2019
1 parent 23d2532 commit d796ffd
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 d796ffd

Please sign in to comment.