summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-01-24 14:55:14 -0800
committerTim Smith <tsmith@chef.io>2017-04-06 10:02:19 -0700
commit1672a9a135738a9ccccb2daa09ccfd7000545beb (patch)
tree0c3a08279de9532372f533db71d05a93ec97830c
parent52420f094ccffe3d227f54307285f33671d5a697 (diff)
downloadohai-1672a9a135738a9ccccb2daa09ccfd7000545beb.tar.gz
Update the case of the plugin name
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/plugins/libvirt.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/ohai/plugins/libvirt.rb b/lib/ohai/plugins/libvirt.rb
index 0ccd8ba6..0faf3637 100644
--- a/lib/ohai/plugins/libvirt.rb
+++ b/lib/ohai/plugins/libvirt.rb
@@ -19,7 +19,7 @@
# Note: This plugin requires libvirt-bin/libvirt-dev as well as the ruby-libvirt
# gem to be installed before it will properly parse data
-Ohai.plugin(:LibVirt) do
+Ohai.plugin(:Libvirt) do
%w{ uri capabilities nodeinfo domains networks storage }.each do |info|
provides "libvirt/#{info}"
depends "virtualization"
@@ -32,9 +32,9 @@ Ohai.plugin(:LibVirt) do
def load_libvirt
begin
require "libvirt" # this is the ruby-libvirt gem not the libvirt gem
- Ohai::Log.debug("Plugin LibVirt: Successfully loaded ruby-libvirt gem")
+ Ohai::Log.debug("Plugin Libvirt: Successfully loaded ruby-libvirt gem")
rescue LoadError
- Ohai::Log.debug("Plugin LibVirt: Can't load gem ruby-libvirt.")
+ Ohai::Log.debug("Plugin Libvirt: Can't load gem ruby-libvirt.")
end
end
@@ -104,12 +104,12 @@ Ohai.plugin(:LibVirt) do
virtconn.close
libvirt libvirt_data
rescue NameError
- Ohai::Log.debug("Plugin LibVirt: Cannot load Libvirt. Skipping...")
+ Ohai::Log.debug("Plugin Libvirt: Cannot load Libvirt. Skipping...")
rescue Libvirt::ConnectionError
- Ohai::Log.debug("Plugin LibVirt: Failed to connect to #{emu}:///system. Skipping...")
+ Ohai::Log.debug("Plugin Libvirt: Failed to connect to #{emu}:///system. Skipping...")
end
else
- Ohai::Log.debug("Plugin LibVirt: Node is not a virtualization host. Skipping...")
+ Ohai::Log.debug("Plugin Libvirt: Node is not a virtualization host. Skipping...")
end
end
end