smart_proxy_pulp 1.5.0 → 1.6.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b877e4d04354d2589c3a051e4723da0e9ab3a1d8e16ff2a27623b250631df05f
|
|
4
|
+
data.tar.gz: a922da7e9d0981d1a5f90c2a26d81d7d609c25c82f4ffdf1e666ecf92b5eca33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9356b22cb7f402569342d7fdd3f420af829b0e1fb329b60800f7cb1df0502840c71b596d845491fa21855de88b7094fb92e00e62f053640a4d14ee5b86b51c3
|
|
7
|
+
data.tar.gz: '095e9ae318f742a89a286beac7167e8d699b874f9adae6846947164c7e5ed6f1c02832c7bf69ea1caded394300d4be0b83aa62771ff8e3ecd0f4e7dd69a3f76a'
|
|
@@ -9,7 +9,7 @@ module PulpProxy
|
|
|
9
9
|
get '/status' do
|
|
10
10
|
content_type :json
|
|
11
11
|
begin
|
|
12
|
-
result = Pulp3Client.get("api/v3/status/")
|
|
12
|
+
result = Pulp3Client.get("/pulp/api/v3/status/")
|
|
13
13
|
return result.body if result.is_a?(Net::HTTPSuccess)
|
|
14
14
|
log_halt result.code, "Pulp server at #{::PulpProxy::Settings.settings.pulp_url} returned an error: '#{result.message}'"
|
|
15
15
|
rescue SocketError, Errno::ECONNREFUSED => e
|
|
@@ -14,7 +14,7 @@ module PulpProxy
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def self.capabilities
|
|
17
|
-
body = JSON.parse(get("api/v3/status/").body)
|
|
17
|
+
body = JSON.parse(get("/pulp/api/v3/status/").body)
|
|
18
18
|
body['versions'].map{|item| item['component'] }
|
|
19
19
|
rescue => e
|
|
20
20
|
logger.error("Could not fetch capabilities: #{e.message}")
|
|
@@ -3,7 +3,7 @@ require 'smart_proxy_pulp_plugin/validators/pulp_url_validator'
|
|
|
3
3
|
module PulpProxy
|
|
4
4
|
class Pulp3Plugin < ::Proxy::Plugin
|
|
5
5
|
plugin "pulp3", ::PulpProxy::VERSION
|
|
6
|
-
default_settings :pulp_url => 'https://localhost
|
|
6
|
+
default_settings :pulp_url => 'https://localhost',
|
|
7
7
|
:content_app_url => 'https://localhost:24816/',
|
|
8
8
|
:pulp_dir => '/var/lib/pulp',
|
|
9
9
|
:pulp_content_dir => '/var/lib/pulp/content',
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_proxy_pulp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitri Dolguikh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-unit
|