From f92f6922e49c36f89ba8ac4ef6b36774fb2a6570 Mon Sep 17 00:00:00 2001 From: Satoe Imaishi Date: Wed, 13 May 2020 12:04:00 -0400 Subject: [PATCH] Revert "Merge pull request #19864 from fdupont-redhat/v2v_conversion_host_fix_extra_vars" This reverts commit d61bf49cbdc7fd6fc3fac2fc53466bffa165a6a3, reversing changes made to 835789226e78f05206841c32ad695db147fbe010. --- app/models/conversion_host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conversion_host.rb b/app/models/conversion_host.rb index 29b832a3b75..8c31441b39e 100644 --- a/app/models/conversion_host.rb +++ b/app/models/conversion_host.rb @@ -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)