Commit 1d74af0
committed
(maint) Read system custom facts when running as user
When Facter is run as a user, the system custom facts are not available.
Always take system custom facts into accound, and if Facter is running
as another user, prepend this user custom facts directories to the list
of search directories.1 parent f0af74f commit 1d74af0
File tree
2 files changed
+21
-32
lines changed- lib/facter/custom_facts/util
- spec/custom_facts/util
2 files changed
+21
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 9 | | |
23 | 10 | | |
24 | 11 | | |
| |||
85 | 72 | | |
86 | 73 | | |
87 | 74 | | |
88 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
89 | 79 | | |
90 | 80 | | |
91 | 81 | | |
| |||
0 commit comments