Commit 44728ef
Zach Leslie
Check that we have results before returning a value
Without this change, empty results yield a message like the following in
Facter output.
undefined method `[]' for nil:NilClass
This work captures the results and check to them to ensure we return
a valid value.1 parent 2111486 commit 44728ef
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments