ovirt 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ovirt/service.rb +1 -1
- data/lib/ovirt/version.rb +1 -1
- data/spec/service_spec.rb +5 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f3756a5c2e938f056ce812ddd0a635ea25e3a62
|
4
|
+
data.tar.gz: ee458f0014107b4f8c391904dd2d29c71a8502e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5c56b49179dc457fbd954dc71628db443c983ee19d19b2037be1e8cf3c2577772212e2b208e31606113fd99c7515a3dbee6d89d3eeaf286b700d3819cb7bf80
|
7
|
+
data.tar.gz: 05b6603770d2b44152960e2304b875d64aaa21cb7ab6a2147da1bb86b5f3a48abb3bd5fc78367da4f3278726087e2158e2fb4b7e26cc1a7ad746fba7aabfeb38
|
data/lib/ovirt/service.rb
CHANGED
@@ -217,7 +217,7 @@ module Ovirt
|
|
217
217
|
rescue RestClient::ResourceNotFound, Ovirt::Error
|
218
218
|
raise
|
219
219
|
rescue Exception => e
|
220
|
-
msg = "#{log_header}: class = #{e.class.name}, message=#{e.message}, URI=#{resource.url}"
|
220
|
+
msg = "#{log_header}: class = #{e.class.name}, message=#{e.message}, URI=#{resource ? resource.url : path}"
|
221
221
|
if $rhevm_log.nil?
|
222
222
|
puts msg
|
223
223
|
else
|
data/lib/ovirt/version.rb
CHANGED
data/spec/service_spec.rb
CHANGED
@@ -28,6 +28,11 @@ EOX
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
it "#resource_get on exception" do
|
32
|
+
@service.stub(:create_resource).and_raise(Exception, "BLAH")
|
33
|
+
expect { @service.resource_get('api') }.to raise_error(Exception, "BLAH")
|
34
|
+
end
|
35
|
+
|
31
36
|
context ".ovirt?" do
|
32
37
|
it "false when ResourceNotFound" do
|
33
38
|
described_class.any_instance.should_receive(:engine_ssh_public_key).and_raise(RestClient::ResourceNotFound)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Frey
|
@@ -10,10 +10,11 @@ authors:
|
|
10
10
|
- Joe Rafaniello
|
11
11
|
- Greg Blomquist
|
12
12
|
- Martin Povolny
|
13
|
+
- Matthew Draper
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
|
-
date: 2015-
|
17
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
17
18
|
dependencies:
|
18
19
|
- !ruby/object:Gem::Dependency
|
19
20
|
name: bundler
|
@@ -150,6 +151,7 @@ email:
|
|
150
151
|
- jrafanie@redhat.com
|
151
152
|
- gblomqui@redhat.com
|
152
153
|
- mpovolny@redhat.com
|
154
|
+
- matthew@trebex.net
|
153
155
|
executables: []
|
154
156
|
extensions: []
|
155
157
|
extra_rdoc_files: []
|
@@ -227,4 +229,3 @@ test_files:
|
|
227
229
|
- spec/template_spec.rb
|
228
230
|
- spec/vm_spec.rb
|
229
231
|
- ".rspec"
|
230
|
-
has_rdoc:
|