redhat_access 2.2.13 → 2.2.14
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baa2211c178a997f575a7a20f0d60f9af85506d02cb744f1dec934dbced3b02a
|
4
|
+
data.tar.gz: 630f1c32d9b21a60509638bdaaeb3c88805ebadd72113486740bddd291e6eede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64484b0cc638a950c83d176c4816f94bc21c9d5e35b29b22f82c703c1f612ab6e66585535ef9dccdaf0a864db6b3572528689d92a09e1206c9df19d690ab0c07
|
7
|
+
data.tar.gz: f5b135a2df630842bd0fbf02ff0e5e4ebac9edc869cbe4ee09a92e141e64504d3d9993b8493e917ddedc5d32a82ba6f37dc05cdc0ea2883a00fb05f42f8c1569
|
@@ -118,7 +118,7 @@ module RedhatAccess
|
|
118
118
|
|
119
119
|
client = get_api_client
|
120
120
|
res = client.call_tapi(original_method, URI.escape(resource), original_params, original_payload, {timeout: get_tapi_timeout}, use_subsets)
|
121
|
-
#401
|
121
|
+
#401 errors means our proxy is not configured right.
|
122
122
|
#Change it to 502 to distinguish with local applications 401 errors
|
123
123
|
resp_data = res[:data]
|
124
124
|
if res[:code] == 401
|
@@ -136,6 +136,9 @@ module RedhatAccess
|
|
136
136
|
if resp_data.headers[:x_resource_count]
|
137
137
|
response.headers['x-resource-count'] = resp_data.headers[:x_resource_count]
|
138
138
|
end
|
139
|
+
if resp_data.headers[:x_rh_insights_request_id]
|
140
|
+
response.headers['x_rh_insights_request_id'] = resp_data.headers[:x_rh_insights_request_id]
|
141
|
+
end
|
139
142
|
render status: res[:code], json: resp_data
|
140
143
|
else
|
141
144
|
render status: res[:code], json: resp_data
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redhat_access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lindani Phiri
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-05-
|
12
|
+
date: 2020-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redhat_access_lib
|