katello 3.15.1.1 → 3.15.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 198db45b1663ec5e4dd73cb999c9ef4860660fe9ca3428293d0c82ea45ff78a2
4
- data.tar.gz: c541eaa6a075bf545ba668d2b80197375428a55047852ca7a4a8fddd2ac7f0cb
2
+ SHA1:
3
+ metadata.gz: 4ad9b04f40e657a51875c8695653860da9fb8ae7
4
+ data.tar.gz: 812424e72605d87d742fa45d14b09a9eaebeaa30
5
5
  SHA512:
6
- metadata.gz: 54851ee1cbf1de239a68264f377b4b96e58b310e656b67daed646927aa56bfbc6f6bdf307dc6f4a1240982675a98d2a05bf4d2991b9dae8dc5b829f0d897a4c2
7
- data.tar.gz: e8466a953f3bedaa7f761f353fdddf8c858dbe9b09b72dcd338c5a2a132745f9b923e2ba1afdd6e4c2a4fd71fafc2bcb1bc88332866c0d6b08930b9c37246d69
6
+ metadata.gz: 5e2c8979164f4403578cd093a6b34cb88bc091aa28179bb2c420730cc2bb10e2bf0cdf7ba2e5ac445b78cc0ba3fa46a21c4ce85c3447b88a8535b0ef5898f7c4
7
+ data.tar.gz: a8634db2c5e979b92723e368dbf92e42766d5f20d0f8757b4f88f3ac6bf56eb7c7e4f86e14510b6bb6101d517713b915aff01f6d5145ea2ac2c85ac05e0fb87c
@@ -38,15 +38,18 @@ module Actions
38
38
  ::Katello::ModuleStream.where(profile.slice(:name, :stream))
39
39
  end
40
40
 
41
- query_name_streams = query_name_streams.inject(&:or)
41
+ updated_profiles = []
42
+ unless query_name_streams.empty?
43
+ query_name_streams = query_name_streams.inject(&:or)
42
44
 
43
- bound_library_instances = host.content_facet.bound_repositories.map(&:library_instance_or_self)
44
- query = ::Katello::ModuleStream.in_repositories(bound_library_instances).
45
- select(:name, :stream, :version, :context, :arch).
46
- merge(query_name_streams)
45
+ bound_library_instances = host.content_facet.bound_repositories.map(&:library_instance_or_self)
46
+ query = ::Katello::ModuleStream.in_repositories(bound_library_instances).
47
+ select(:name, :stream, :version, :context, :arch).
48
+ merge(query_name_streams)
47
49
 
48
- updated_profiles = query.map do |module_stream|
49
- module_stream.slice(:name, :stream, :version, :context, :arch)
50
+ updated_profiles = query.map do |module_stream|
51
+ module_stream.slice(:name, :stream, :version, :context, :arch)
52
+ end
50
53
  end
51
54
 
52
55
  # We also need to pass module streams that are not found in the ModuleStream table
@@ -55,10 +58,16 @@ module Actions
55
58
  updated_profiles.none? { |p| p[:name] == profile[:name] && p[:stream] == profile[:stream] }
56
59
  end
57
60
 
58
- ::Katello::Pulp::Consumer.new(host.content_facet.uuid).
59
- upload_module_stream_profile(updated_profiles + unassociated_profiles)
60
- rescue RestClient::ResourceNotFound
61
- Rails.logger.warn("Host with ID %s was not known to Pulp, continuing" % host.id)
61
+ module_stream_profile = updated_profiles + unassociated_profiles
62
+
63
+ unless module_stream_profile.empty?
64
+ begin
65
+ ::Katello::Pulp::Consumer.new(host.content_facet.uuid).
66
+ upload_module_stream_profile(module_stream_profile)
67
+ rescue RestClient::ResourceNotFound
68
+ Rails.logger.warn("Host with ID %s was not known to Pulp, continuing" % host.id)
69
+ end
70
+ end
62
71
  end
63
72
 
64
73
  def import_module_streams(payload, host)
@@ -124,6 +124,8 @@ module Katello
124
124
  config.ssl_client_key = ::Cert::Certs.ssl_client_key
125
125
  config.debugging = true
126
126
  config.logger = ::Foreman::Logging.logger('katello/pulp_rest')
127
+ config.username = self.setting(PULP3_FEATURE, 'username')
128
+ config.password = self.setting(PULP3_FEATURE, 'password')
127
129
  end
128
130
  end
129
131
 
@@ -195,7 +197,7 @@ module Katello
195
197
  pulp3_uri!.host
196
198
  end
197
199
 
198
- def pulp3_url(path = '/pulp/api/v3/')
200
+ def pulp3_url(path = '/pulp/api/v3')
199
201
  pulp_url = self.setting(PULP3_FEATURE, 'pulp_url')
200
202
  path.blank? ? pulp_url : "#{pulp_url.sub(%r|/$|, '')}/#{path.sub(%r|^/|, '')}"
201
203
  end
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "3.15.1.1".freeze
2
+ VERSION = "3.15.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.1.1
4
+ version: 3.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-26 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: foreman-tasks
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "<"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.14.1
89
+ version: 1.2.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "<"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.14.1
96
+ version: 1.2.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: dynflow
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -4652,7 +4652,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4652
4652
  - !ruby/object:Gem::Version
4653
4653
  version: '0'
4654
4654
  requirements: []
4655
- rubygems_version: 3.0.3
4655
+ rubyforge_project:
4656
+ rubygems_version: 2.5.2.1
4656
4657
  signing_key:
4657
4658
  specification_version: 4
4658
4659
  summary: Content and Subscription Management plugin for Foreman