You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
STDERR: There are errors in the configuration of this machine. Please fix
the following errors and try again:
WinRM:
winrm.ssl_peer_verification must be a boolean.
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on default-windows-2012R2
Please see .kitchen/logs/kitchen.log for more details
Also try running kitchen diagnose --all for configuration
The text was updated successfully, but these errors were encountered:
I was able to make it work with the following hack in \templates\Vagrantfile.erb instead:
<% if config[:winrm] %>
<% config[:winrm].each do |key, value| %>
<% formatted_value = case value
when true
true
when false
false
else
"\"#{value}\""
end
%>
c.winrm.<%= key %> = <%= formatted_value %>
<% end %>
<% end %>
... but that obviously won't work for e.g. numbers if you don't want them in quotes too.
There is a bug in https://github.com/test-kitchen/kitchen-vagrant/blob/master/templates/Vagrantfile.erb
on line 71:
c.winrm.<%= key %> = "<%= value %>"
That code assumes the value will be always wrapped in double quotes which produces e.g.
c.winrm.ssl_peer_verification = "false"
But that is wrong, because for boolean values it must not be wrapped in double quotes.
If I have set up the following driver config:
It will fail with the following error:
The text was updated successfully, but these errors were encountered: