From 545df707b8fff42a39020409847b59909028ea1f Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 9 Jul 2014 15:21:28 +0300 Subject: Require OpenStruct How this works in ruby2.0 normally? What component has loaded this implicitly? Thanks to @RichiH for spotting. --- lib/oxidized/node.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 20aab76..c39bee1 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -1,5 +1,6 @@ module Oxidized require 'resolv' + require 'ostruct' require_relative 'node/stats' class MethodNotFound < OxidizedError; end class ModelNotFound < OxidizedError; end -- cgit v1.2.1