redhat_access_lib 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/api/telemetry_api.rb +8 -2
- data/redhat_access_lib.gemspec +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 30268958906855315e6b4c57f68ada7e6260d3fbd0e0c4e0e962316a1ae62006
|
4
|
+
data.tar.gz: 70bf52909e4232ecad6a108a38cfa0980038d229f4d78fde5bcd54d4530eef54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c224a9c2f09c3b54b4c424f298ad3fab0a43b508fa84ece5ba4e59e1dcc470e9dc69c0d3d13c06c1f0232302db8439c8b615e85146efb01226c3182373f402ef
|
7
|
+
data.tar.gz: 613c647664c3464fa9c64f8c0fd7c3e5b576b0eb1333676b7a35db35cb935958b7c03da608cdc7d23fcaaf3e026468709e1bd5fb71de577a644c2b7b501424ff
|
data/lib/api/telemetry_api.rb
CHANGED
@@ -74,6 +74,7 @@ module RedHatSupportLib::TelemetryApi
|
|
74
74
|
ldebug ("HTTP proxy is set to #{@http_proxy}")
|
75
75
|
end
|
76
76
|
|
77
|
+
# not currently used by foreman-plugin...
|
77
78
|
def post_upload(original_params,
|
78
79
|
original_payload)
|
79
80
|
|
@@ -84,6 +85,7 @@ module RedHatSupportLib::TelemetryApi
|
|
84
85
|
do_upload: true)
|
85
86
|
end
|
86
87
|
|
88
|
+
# not currently used by foreman-plugin...
|
87
89
|
def call_tapi_no_subset(original_method,
|
88
90
|
resource,
|
89
91
|
original_params,
|
@@ -100,9 +102,13 @@ module RedHatSupportLib::TelemetryApi
|
|
100
102
|
original_payload,
|
101
103
|
extra, use_subsets = true)
|
102
104
|
|
105
|
+
# merge all the params into one hash - this lets us add additional options
|
106
|
+
args = {params: original_params, method: original_method, payload: original_payload}
|
107
|
+
args.merge!(extra) if extra
|
108
|
+
|
103
109
|
if (use_subsets && subset_resource = create_subset_route(resource))
|
104
110
|
ldebug "Doing subset call to #{subset_resource} (was : #{resource})"
|
105
|
-
response = do_subset_call("#{@api_url}/#{subset_resource}",
|
111
|
+
response = do_subset_call("#{@api_url}/#{subset_resource}", args)
|
106
112
|
return {data: response, code: response.code}
|
107
113
|
else
|
108
114
|
if extra && extra[:do_upload]
|
@@ -110,7 +116,7 @@ module RedHatSupportLib::TelemetryApi
|
|
110
116
|
else
|
111
117
|
url = "#{@api_url}/#{resource}"
|
112
118
|
end
|
113
|
-
client = default_rest_client(url,
|
119
|
+
client = default_rest_client(url, args)
|
114
120
|
response = client.execute
|
115
121
|
return {data: response, code: response.code}
|
116
122
|
end
|
data/redhat_access_lib.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redhat_access_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lindani Phiri
|
@@ -85,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
|
89
|
-
rubygems_version: 2.6.11
|
88
|
+
rubygems_version: 3.0.1
|
90
89
|
signing_key:
|
91
90
|
specification_version: 4
|
92
91
|
summary: Rest Client for accessing Red Hat Support
|