rbovirt 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ovirt/version.rb +1 -1
- data/lib/ovirt/volume.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2UzMTk4OTk2ZmFlNWJjMGVkYzYzMjBkY2Q3YmIxMzNiNjkxMGJmOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDEyYWE2ZjAyY2E3YjEwNjY0OGEzOGMxNDY5NTQwZGIwMWY2ZDY5NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDllNmM3OGZkZjBkNGY3Yjk1NjhjM2I0YWJjZDcyODI3ZGZlNTcxMjdlNzA2
|
10
|
+
M2EzNDc4NWM4YzE1YWFkZjNjODU3NDZiYjI3ODg4YjM3NjcxZTkwNjVjOWUy
|
11
|
+
NTAwZGVkY2QzYmQ4ZTQ1ZDQyY2QyZDI4ZmEyNDA3NzM2MDVjZDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjMwMGZhZjQxZDcxZGI3MzRkODYyYmJiMWYzYWQ2MjVkMmM0YTg5MGZlN2Nj
|
14
|
+
YTYyMzI4MzNjZjc4YTQ0ZGUyZjU3NTFhZmY0NjMzNzE2MTZlNmE4NWUyYmUx
|
15
|
+
NTNiNDI2YTBhYjhhMWVkODRiNjU3MGM4YjVhZTc3ZDhiY2UyYjk=
|
data/lib/ovirt/version.rb
CHANGED
data/lib/ovirt/volume.rb
CHANGED
@@ -30,13 +30,13 @@ module OVIRT
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def parse_xml_attributes!(xml)
|
33
|
-
@storage_domain = (xml/'storage_domains/storage_domain').first[:id]
|
33
|
+
@storage_domain = ((xml/'storage_domains/storage_domain').first[:id] rescue nil)
|
34
34
|
@size = (xml/'size').first.text
|
35
35
|
@disk_type = ((xml/'type').first.text rescue nil)
|
36
36
|
@bootable = (xml/'bootable').first.text
|
37
37
|
@interface = (xml/'interface').first.text
|
38
|
-
@format = (xml/'format').first.text
|
39
|
-
@sparse = (xml/'sparse').first.text
|
38
|
+
@format = ((xml/'format').first.text rescue nil)
|
39
|
+
@sparse = ((xml/'sparse').first.text rescue nil)
|
40
40
|
@status = ((xml/'status').first.text rescue nil)
|
41
41
|
@status ||= ((xml/'status/state').first.text rescue nil)
|
42
42
|
@vm = Link::new(@client, (xml/'vm').first[:id], (xml/'vm').first[:href]) rescue nil
|
data/spec/spec_helper.rb
CHANGED
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.0.
|
4
|
+
version: 0.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amos Benari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|