summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-29 17:00:48 -0800
committerTim Smith <tsmith@chef.io>2018-01-29 17:00:48 -0800
commit6f9472b85f623d0d5e964cb5ba2dd4e7a8c5ee6f (patch)
treeb0b86c0d85903f20108aedbc2acb726c32141034
parent81983d49b60a3de310aef8a09a57dac8d690bc36 (diff)
downloadohai-6f9472b85f623d0d5e964cb5ba2dd4e7a8c5ee6f.tar.gz
Chefstyle fix for libvirt pluginchefstyle_fix
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/plugins/libvirt.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/ohai/plugins/libvirt.rb b/lib/ohai/plugins/libvirt.rb
index 95b2f1e1..a7e25086 100644
--- a/lib/ohai/plugins/libvirt.rb
+++ b/lib/ohai/plugins/libvirt.rb
@@ -30,12 +30,10 @@ Ohai.plugin(:Libvirt) do
end
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")
- rescue LoadError
- Ohai::Log.debug("Plugin Libvirt: Can't load gem ruby-libvirt.")
- end
+ require "libvirt" # this is the ruby-libvirt gem not the 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.")
end
def virtconn