Commit 2a25b6d
committed
Fix
The functions were using the old legacy function API. This meant that
when they called `has_interface_with`, they were calling the legacy
implementation of that function and not the v4 API version introduced in
bc218f0.
Only in the v4 API implementation was the modern `networking` structured
fact being used. The old `parser/functions/has_interface_with.rb`
version still used legacy facts that are now not included in Puppet 8 by
default.
In this commit, we replace the `has_ip_address` and `has_ip_network`
functions with namespaced Puppet language functions, (these functions
are simple enough to not need ruby). Non-namespaced versions are added
(but marked as deprecated) in `lib/puppet/functions`.
The old implementations are removed completely. This is _almost_
certainly not going to be a breaking change for anyone. (Only other
legacy functions which in turn call these functions could be affected).
Fixes #1447has_ip_address and has_ip_network functions1 parent 52740b7 commit 2a25b6d
File tree
10 files changed
+131
-188
lines changed- functions
- lib/puppet
- functions
- parser/functions
- spec/functions
10 files changed
+131
-188
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
2052 | 2053 | | |
2053 | 2054 | | |
2054 | 2055 | | |
2055 | | - | |
2056 | | - | |
2057 | | - | |
2058 | | - | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | | - | |
2068 | | - | |
2069 | | - | |
2070 | | - | |
2071 | | - | |
2072 | | - | |
2073 | | - | |
2074 | | - | |
| 2056 | + | |
2075 | 2057 | | |
2076 | | - | |
| 2058 | + | |
2077 | 2059 | | |
2078 | | - | |
| 2060 | + | |
2079 | 2061 | | |
2080 | | - | |
| 2062 | + | |
2081 | 2063 | | |
2082 | | - | |
| 2064 | + | |
2083 | 2065 | | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
2089 | | - | |
| 2066 | + | |
2090 | 2067 | | |
2091 | | - | |
| 2068 | + | |
2092 | 2069 | | |
2093 | | - | |
2094 | | - | |
2095 | | - | |
| 2070 | + | |
2096 | 2071 | | |
2097 | | - | |
2098 | 2072 | | |
2099 | | - | |
2100 | 2073 | | |
2101 | | - | |
2102 | | - | |
| 2074 | + | |
2103 | 2075 | | |
2104 | | - | |
| 2076 | + | |
2105 | 2077 | | |
2106 | | - | |
2107 | | - | |
| 2078 | + | |
2108 | 2079 | | |
2109 | | - | |
| 2080 | + | |
2110 | 2081 | | |
2111 | | - | |
| 2082 | + | |
2112 | 2083 | | |
2113 | | - | |
| 2084 | + | |
2114 | 2085 | | |
2115 | | - | |
2116 | | - | |
| 2086 | + | |
2117 | 2087 | | |
2118 | | - | |
| 2088 | + | |
2119 | 2089 | | |
2120 | | - | |
2121 | | - | |
2122 | 2090 | | |
2123 | | - | |
2124 | 2091 | | |
2125 | 2092 | | |
2126 | 2093 | | |
| |||
3575 | 3542 | | |
3576 | 3543 | | |
3577 | 3544 | | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
3578 | 3581 | | |
3579 | 3582 | | |
3580 | 3583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | | - | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
0 commit comments