lib/ohai/plugins/libvirt.rb in ohai-16.7.18 vs lib/ohai/plugins/libvirt.rb in ohai-16.7.37
- old
+ new
@@ -15,15 +15,15 @@
# 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.
#
-# Note: This plugin requires libvirt-bin/libvirt-dev as well as the ruby-libvirt
+# 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
- %w{ uri capabilities nodeinfo domains networks storage }.each do |info|
+ %w{uri capabilities nodeinfo domains networks storage}.each do |info|
provides "libvirt/#{info}"
depends "virtualization"
end
def emu
@@ -87,10 +87,10 @@
end
end
storage_data
end
- collect_data do
+ collect_data(:linux) do
if virtualization[:role].eql?("host")
load_libvirt
begin
libvirt_data = Mash.new
libvirt_data[:uri] = virtconn.uri