diff options
Diffstat (limited to 'lib/ohai/plugins/openstack.rb')
-rw-r--r-- | lib/ohai/plugins/openstack.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ohai/plugins/openstack.rb b/lib/ohai/plugins/openstack.rb index c8e6e91b..8ee6080d 100644 --- a/lib/ohai/plugins/openstack.rb +++ b/lib/ohai/plugins/openstack.rb @@ -16,12 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -require "ohai/mixin/ec2_metadata" -require "ohai/mixin/http_helper" - Ohai.plugin(:Openstack) do - include Ohai::Mixin::Ec2Metadata - include Ohai::Mixin::HttpHelper provides "openstack" depends "dmi" @@ -57,6 +52,11 @@ Ohai.plugin(:Openstack) do end collect_data do + require "ohai/mixin/ec2_metadata" + require "ohai/mixin/http_helper" + include Ohai::Mixin::Ec2Metadata + include Ohai::Mixin::HttpHelper + # fetch data if we look like openstack if openstack_hint? || openstack_dmi? openstack Mash.new |