chef / knife-windows

Plugin for Chef's knife tool for working with Windows nodes
Apache License 2.0
152 stars 110 forks source link

Change the %PATH% env to use windows default values #444

Closed teknofire closed 6 years ago

teknofire commented 6 years ago

Fixes issue when bootstrapping windows systems failing with the message: The input line is too long..

This is triggered by a "very" long %PATH% environment variable getting expanded at execution and causing the command being execute to become longer than the allowed size.

We only need enough of the path set to be to run chef-client and doesn't persist to the system.

Signed-off-by: Will Fisher wfisher@chef.io

tas50 commented 6 years ago

Thanks for the spec helper fix as well