ocp 0.0.14 → 0.0.15
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.
- checksums.yaml +4 -4
- data/lib/client/OcpClient.rb +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d2625c711d28144a6538b2d5bd9a30fea0b4f9f
|
4
|
+
data.tar.gz: b33ba935d134d7fc8cea7312f2c04f06e516acb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3111a1f2de5440bac8294468b7ab885e742de967f075cbbd4f9a28d0ed8af161b0aebf8e6413655b899d5d67985b2d714954275dbb3a056aa59f9679765af009
|
7
|
+
data.tar.gz: 5b80b23de2da7ff8faa0a84bc5086a64c247b4a58717ff5e033eb94cba029f4fb8e57e4fd936f1aa26b414c894506acf2743a88ef946535d98dcf9b69746448c
|
data/lib/client/OcpClient.rb
CHANGED
@@ -123,16 +123,16 @@ class OcpClient
|
|
123
123
|
end
|
124
124
|
rescue => exception
|
125
125
|
if @debug and !exception.nil?
|
126
|
-
puts "Exception: " << exception
|
126
|
+
puts "Exception: " << exception.to_s
|
127
127
|
end
|
128
|
-
@response = exception
|
128
|
+
@response = exception.to_s
|
129
129
|
end
|
130
130
|
|
131
|
-
@response = response
|
132
|
-
|
133
131
|
if !response.nil? and @pretty
|
134
132
|
results = JSON.pretty_generate(JSON.parse(response.to_str))
|
135
133
|
@response = results
|
134
|
+
elsif !response.nil?
|
135
|
+
@response = response
|
136
136
|
end
|
137
137
|
|
138
138
|
return @response
|
@@ -177,9 +177,9 @@ class OcpClient
|
|
177
177
|
end
|
178
178
|
rescue => exception
|
179
179
|
if @debug and !exception.nil?
|
180
|
-
puts "Exception: " << exception
|
180
|
+
puts "Exception: " << exception.to_s
|
181
181
|
end
|
182
|
-
@response = exception
|
182
|
+
@response = exception.to_s
|
183
183
|
end
|
184
184
|
|
185
185
|
@response = response
|
@@ -187,6 +187,8 @@ class OcpClient
|
|
187
187
|
if !response.nil? and @pretty
|
188
188
|
results = JSON.pretty_generate(JSON.parse(response.to_str))
|
189
189
|
@response = results
|
190
|
+
elsif !response.nil?
|
191
|
+
@response = response
|
190
192
|
end
|
191
193
|
|
192
194
|
return @response
|