katello 3.4.0 → 3.4.0.1

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
2
  SHA1:
3
- metadata.gz: 7ca8f57b46bc9721e4c1fa328d529bbe1648c8c0
4
- data.tar.gz: f307460b4ff1f4239a751a9bc9a85fe851372cb4
3
+ metadata.gz: 9fb6dbdc97d88c92f899d5d4c1bec535653ba49f
4
+ data.tar.gz: 7ec4b3d715dda3332ce222437159e879391e4bb4
5
5
  SHA512:
6
- metadata.gz: 9e6dea22f805c400a91b25becc5ce63e3859fb041ae7332ee66fae6d96b9779aa85b97a6369e7ae8cbe70e14a2a5aa747be3cfaf87cb9ec739b2444f60c11d2b
7
- data.tar.gz: e32a2ae850e272742cb546a77dc6a06ac01decfb9240d1d397a67e406dd56bc85b603df686f2ddae6d7bf1869e2a8d2b367a5384e719f053b67fa9c8b0b09c89
6
+ metadata.gz: 36140d929b90eb6783106bf712b5a87f1055b8cc898dc4902737d3b4b012df2333eaa8074f848a720b19dad92b20823877f3e88f0ea5eeb77f4bf8cd4764af76
7
+ data.tar.gz: 9325f2f0fac81575ec37f617939e2b09ff10d344fac61a13ac631851c552385030c8529924059c97a456260b6b44b0151693fa50742fd51b027457eb077cd1d1
@@ -7,21 +7,23 @@ module Katello
7
7
  end
8
8
 
9
9
  def self.update_puppet_environment(content_view, environment)
10
- content_view_puppet_env = content_view.version(environment).puppet_env(environment)
11
- if !content_view.default? && content_view_puppet_env
12
- foreman_environment = content_view_puppet_env.puppet_environment
10
+ User.as_anonymous_admin do
11
+ content_view_puppet_env = content_view.version(environment).puppet_env(environment)
12
+ if !content_view.default? && content_view_puppet_env
13
+ foreman_environment = content_view_puppet_env.puppet_environment
13
14
 
14
- # Associate the puppet environment with the locations that are currently
15
- # associated with the capsules that have the target lifecycle environment.
16
- capsule_contents = Katello::CapsuleContent.with_environment(environment, true)
17
- unless capsule_contents.blank?
18
- locations = capsule_contents.map(&:capsule).map(&:locations).compact.flatten.uniq
19
- foreman_environment.locations = locations
20
- foreman_environment.save!
21
- end
15
+ # Associate the puppet environment with the locations that are currently
16
+ # associated with the capsules that have the target lifecycle environment.
17
+ capsule_contents = Katello::CapsuleContent.with_environment(environment, true)
18
+ unless capsule_contents.blank?
19
+ locations = capsule_contents.map(&:capsule).map(&:locations).compact.flatten.uniq
20
+ foreman_environment.locations = locations
21
+ foreman_environment.save!
22
+ end
22
23
 
23
- if (foreman_smart_proxy = SmartProxy.default_capsule)
24
- PuppetClassImporter.new(:url => foreman_smart_proxy.url, :env => foreman_environment.name).update_environment
24
+ if (foreman_smart_proxy = SmartProxy.default_capsule)
25
+ PuppetClassImporter.new(:url => foreman_smart_proxy.url, :env => foreman_environment.name).update_environment
26
+ end
25
27
  end
26
28
  end
27
29
  end
@@ -38,6 +38,7 @@ angular.module('Bastion.host-collections').controller('HostCollectionAddHostsCon
38
38
  return term + " and " + addition;
39
39
  };
40
40
 
41
+ contentNutupane.refresh();
41
42
  $scope.table = contentNutupane.table;
42
43
  $scope.isAdding = false;
43
44
  $scope.table.closeItem = function () {};
@@ -42,6 +42,7 @@ angular.module('Bastion.host-collections').controller('HostCollectionHostsContro
42
42
  $scope.table.closeItem = function () {};
43
43
  $scope.isRemoving = false;
44
44
  $scope.contentNutupane.setSearchKey('contentHostSearch');
45
+ $scope.contentNutupane.refresh();
45
46
 
46
47
  $scope.removeSelected = function () {
47
48
  var selected = _.map($scope.table.getSelected(), 'id');
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "3.4.0".freeze
2
+ VERSION = "3.4.0.1".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.4.0
4
+ version: 3.4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails