Closed spuder closed 6 years ago
@spuder Thanks for pointing this issue, I've reproduced this issue.
-t
is short-name for both the options --bootstrap-template
as well as --winrm-transport
as
option :winrm_transport,
:short => "-t TRANSPORT",
:long => "--winrm-transport TRANSPORT",
and
option :bootstrap_template,
:short => "-t TEMPLATE",
:long => "--bootstrap-template TEMPLATE",
So we may remove this short-name from --bootstrap-template
and have it working properly.
We will work on it.
Thanks
@spuder This issue is fixed in https://github.com/chef/knife-windows/pull/457. Could you please close this now?
Thanks
Chef Development Kit Version: 1.6.11 chef-client version: 12.21.26 delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427) berks version: 5.6.4 kitchen version: 1.16.0 inspec version: 1.25.1
knife-windows (1.9.0)
If you use the
-t
option for a bootstrap template, the bootstrap option is completely ignored. If you use the--bootstrap-template
option, the bootstrap option works as expected.Steps to reproduce
c:\users\foobar.chef\bootstrap\foo.erb
-t
option--bootstrap-template gives expected result of garbage template (#####)
-t gives unexpected result of using default template