Commit f2a42ff
(CAT) Fix Windows docker facts failing when powershell not on PATH
The docker custom facts wrap Docker CLI calls in powershell but invoked it
as the bare name 'powershell'. When the Puppet agent runs as the SYSTEM
service its PATH often omits the WindowsPowerShell directory, so Facter's
internal which('powershell') fails and reports "command not found" even
though docker itself is on the PATH.
Invoke powershell by its absolute path derived from %SystemRoot% so it is
always resolvable. Also ignore .claude/settings.local.json.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 233293a commit f2a42ff
3 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments