Commit 89f86e7
committed
(FACT-3102) Use non-deprecated YAML safe loading
This PR suppresses the following `Psych.safe_load` args warn when using
Psych 3.1.0 (Ruby 2.6+).
Passing permitted_classes with the 2nd argument of Psych.safe_load
is deprecated. Use keyword argument like Psych.safe_load(yaml,
permitted_classes: ...) instead.
This is needed because in Psych 4 (included in Ruby 3.1) it is no longer
allowed to use the non-keyword style.1 parent b29fe99 commit 89f86e7
File tree
2 files changed
+11
-2
lines changed- .github/workflows
- lib/facter/custom_facts/util
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| |||
0 commit comments