rbovirt 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 720f999f694e658931135b7ef0884b605cb2f0f8
4
- data.tar.gz: ae779e3a1b349180f8d1ba4ca7ad0e568fa1851e
3
+ metadata.gz: 4b83603f3c2ed526417b4df6fc5b6a0b5bdec7f8
4
+ data.tar.gz: b1f7ccad2e6739c8c898fed8da7417ba546dcb75
5
5
  SHA512:
6
- metadata.gz: f5951efe8033905942350e28cf650727926f725f39c456bc63a669747aec300f5df6bb509251baa807ca2b9cd4fe2a665deb9d76f6fae4ddacbc838d1245253e
7
- data.tar.gz: 32074bb91af5c69ff22c0e93922fc65d631ee434034429ce4ad86ac19172972ae8ef8f902044b6640c7ffe67b42d8aec4c83d93499ac999efdfd18b5c33d8853
6
+ metadata.gz: f0b8449b17f4ff36d87b16fc191f26289b13cb8451db5e805121b28c369b7219ddbb3b81b2368c88d6b7e4c741795f7e2221bcf646da2f9cd69eb823b15f174a
7
+ data.tar.gz: ba8427969be50332bf6e773b9ec33c7142f5d9ccc0c89cd18bb631b8fbff464b1f1712c2e58108872842ace9bffd82381ab57882abb61f9b6aea4421eba93a15
@@ -23,7 +23,8 @@ module OVIRT
23
23
  # Common attributes
24
24
  @description = ((xml/'description').first.text rescue '')
25
25
  @memory = (xml/'memory').first.text
26
- @cores = ((xml/'cpu/topology').first[:cores].to_i * (xml/'cpu/topology').first[:sockets].to_i rescue nil)
26
+ @cores = (xml/'cpu/topology').first[:cores].to_i
27
+ @sockets = (xml/'cpu/topology').first[:sockets].to_i
27
28
  @os = {
28
29
  :type => (xml/'os').first[:type],
29
30
  :boot => (xml/'os/boot').collect {|boot| boot[:dev] }
@@ -44,7 +44,8 @@ module OVIRT
44
44
  :type => ((xml/'display/type').first.text rescue ''),
45
45
  :monitors => ((xml/'display/monitors').first.text rescue 0)
46
46
  }
47
- @cores = ((xml/'cpu/topology').first[:cores].to_i * (xml/'cpu/topology').first[:sockets].to_i rescue nil)
47
+ @cores = (xml/'cpu/topology').first[:cores].to_i
48
+ @sockets = (xml/'cpu/topology').first[:sockets].to_i
48
49
  @storage = ((xml/'disks/disk/size').first.text rescue nil)
49
50
  @creation_time = (xml/'creation_time').text
50
51
  @os = {
@@ -1,3 +1,3 @@
1
1
  module OVIRT
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbovirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos Benari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri