ansible_tower_client 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b7412f37ec22ef0f3d434b8fdca3b81dd59b0a1
|
4
|
+
data.tar.gz: 3a76b2dc55d706299a17adebb015d390bdc1883b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ab66b74f2346f3dfaffdc6c07392b7b9ac80c005c671a629a5487f09ca7bb0bb53864d281d482a4ca5a4fc52a1b348e431ec59f56d78027fe32c4d5f7759fb9
|
7
|
+
data.tar.gz: 415d627fbbec11c8a3abc2d97c6b7e0f8f7709ed9e6acfb7682f5d312722aa10e4b8c8b06ef171c89f16d8563a8066c6815a1a0713d64bc406ac6258c2e036db
|
data/lib/ansible_tower_client.rb
CHANGED
@@ -39,6 +39,12 @@ module AnsibleTowerClient
|
|
39
39
|
|
40
40
|
def method_missing(method_name, *args, &block)
|
41
41
|
instance.respond_to?(method_name) ? instance.send(method_name, *args, &block) : super
|
42
|
+
rescue Faraday::ConnectionFailed, Faraday::SSLError => err
|
43
|
+
raise
|
44
|
+
rescue Faraday::ClientError => err
|
45
|
+
message = JSON.parse(err.message)['detail'] rescue nil
|
46
|
+
message ||= "An unknown error was returned from the provider"
|
47
|
+
raise AnsibleTowerClient::ConnectionError, message
|
42
48
|
end
|
43
49
|
|
44
50
|
def respond_to_missing?(method, _include_private = false)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ansible_tower_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Dunne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/ansible_tower_client/base_model.rb
|
162
162
|
- lib/ansible_tower_client/collection.rb
|
163
163
|
- lib/ansible_tower_client/connection.rb
|
164
|
+
- lib/ansible_tower_client/exception.rb
|
164
165
|
- lib/ansible_tower_client/group.rb
|
165
166
|
- lib/ansible_tower_client/hash_model.rb
|
166
167
|
- lib/ansible_tower_client/host.rb
|