samanage 1.8.9 → 1.8.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -5
- data/changelog.md +3 -0
- data/lib/samanage/api/groups.rb +1 -1
- data/lib/samanage/api.rb +3 -2
- data/lib/samanage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b82a02c5f07344fe1a33e1c6817bbf658ab8a31
|
4
|
+
data.tar.gz: 2ba9ee1d94717d38a60b3df233cd9270df12bb7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e15f279e3db1f215c199903f3cb39520d455828c673c006604411bb2e1e5d2a95e2334da604dfd76f05cfe48cc2d3b06694e9df421d632381f9010291b5d258e
|
7
|
+
data.tar.gz: 968e5e92f9a96041812a43bff596287815e7e092c2e8aab93b2e8c8fc6016722441f37070577b24490ef02544106c3e00e727f9fe1f7e420ae46e6573d1b1227
|
data/README.md
CHANGED
data/changelog.md
CHANGED
data/lib/samanage/api/groups.rb
CHANGED
@@ -22,7 +22,7 @@ module Samanage
|
|
22
22
|
|
23
23
|
def find_group_id_by_name(group: nil)
|
24
24
|
group_api = self.execute(path: "groups.json?name=#{group}")
|
25
|
-
if group_api[:data].
|
25
|
+
if !group_api[:data].empty? && group == group_api[:data].first['name']
|
26
26
|
return group_api[:data].first['id']
|
27
27
|
end
|
28
28
|
end
|
data/lib/samanage/api.rb
CHANGED
@@ -92,9 +92,10 @@ module Samanage
|
|
92
92
|
else
|
93
93
|
raise Samanage::Error.new(response: {response: 'Unknown HTTP method'})
|
94
94
|
end
|
95
|
-
rescue Errno::ECONNREFUSED, Net::OpenTimeout, Errno::ETIMEDOUT => e
|
96
|
-
puts "#{e} - #{e.class}"
|
95
|
+
rescue Errno::ECONNREFUSED, Net::OpenTimeout, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError => e
|
96
|
+
puts "Error: #{e} - #{e.class}"
|
97
97
|
puts "Retry: #{retries}/#{self.max_retries}"
|
98
|
+
sleep 3
|
98
99
|
retries += 1
|
99
100
|
retry if retries < self.max_retries
|
100
101
|
error = e
|
data/lib/samanage/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samanage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.91
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Walls
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|