lib/ohai/plugins/network.rb in ohai-13.3.0 vs lib/ohai/plugins/network.rb in ohai-13.4.0
- old
+ new
@@ -14,13 +14,12 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require "ipaddress"
-require "ohai/mixin/network_constants"
-
Ohai.plugin(:NetworkAddresses) do
+ require "ipaddress"
+ require "ohai/mixin/network_constants"
include Ohai::Mixin::NetworkConstants
provides "ipaddress", "ip6address", "macaddress"
depends "network/interfaces"