Repository navigation
Commit 297c11b
committed
(PUP-11459) Always load Puppet::Util::Windows
Previously, 'puppet/util/windows.rb' was loaded on Windows due to requiring
'puppet/file_system/uniquefile'[1]. The second require[2] was actually a noop,
since the file had already been required. And on non-Windows, the file was never
loaded.
Now we explicitly require 'puppet/util/windows' on all platforms. It must be
done after 'puppet/util/platform' so we can detect if we're actually on Windows.
We also remove the misleading requires that didn't do anything.
[1] https://github.com/puppetlabs/puppet/blob/6.26.0/lib/puppet/util.rb#L11
[2] https://github.com/puppetlabs/puppet/blob/6.26.0/lib/puppet/util.rb#L251 parent 49f2309 commit 297c11b
3 files changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments