voxpupuli / webhook-go

Puppet Webhook port in Golang
Apache License 2.0
16 stars 12 forks source link

Use provided r10k command_path #153

Closed genebean closed 6 months ago

genebean commented 6 months ago

Prior to this, the Config struct had a setting under the R10k struct called CommandPath that could be set in the config file, but was ignored as both places that would use it were hard coded to instead use the string r10k. This resulted in the application looking in the path for the r10k binary. A default is set in config.go also, but that seems to have also been ignored.

This fixes #152

Note: I think this should also have a test, but I don't know enough about writing tests in go to make one that works...