xenapi 0.2.9 → 0.2.10
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.
- data/HISTORY +3 -0
- data/VERSION +1 -1
- data/lib/xenapi/client.rb +5 -1
- data/xenapi.gemspec +2 -2
- metadata +4 -4
data/HISTORY
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.10
|
data/lib/xenapi/client.rb
CHANGED
@@ -251,7 +251,11 @@ module XenApi #:nodoc:
|
|
251
251
|
else
|
252
252
|
raise ResponseMissingErrorDescriptionField unless r.has_key?('ErrorDescription')
|
253
253
|
raise SessionInvalid if r['ErrorDescription'][0] == 'SESSION_INVALID'
|
254
|
-
|
254
|
+
|
255
|
+
ed = r['ErrorDescription'].shift
|
256
|
+
ex = Errors.exception_class_from_desc(ed)
|
257
|
+
r['ErrorDescription'].unshift(ed) if ex.is_a? Errors::GenericError
|
258
|
+
raise ex, r['ErrorDescription'].inspect
|
255
259
|
end
|
256
260
|
end
|
257
261
|
end
|
data/xenapi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{xenapi}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Geoff Garside"]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-23}
|
13
13
|
s.description = %q{Xen API XMLRPC Client library for working with XenServers}
|
14
14
|
s.email = %q{geoff+xenapi@geoffgarside.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xenapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 10
|
10
|
+
version: 0.2.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Geoff Garside
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: thoughtbot-shoulda
|