katello 3.9.0.rc2 → 3.9.0

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: f6b967f06b8ebbd4d5c372ac7050103056ef3ce7
4
- data.tar.gz: 200524bd0eeb8414e2fde6f9b83a25a5a3e2a132
3
+ metadata.gz: '091b4e68cbaf3d4f59e7e68eadb6c7614dec995d'
4
+ data.tar.gz: d5f981cb609b26e25e4e3115578f499965ee506a
5
5
  SHA512:
6
- metadata.gz: ca4ef8d5bb1adb3fed0aea35a251bc421aef8c79a85b0dcdef212baf2ecbdd0301c7dbfa0edb166978fb637e3fbfd7e15ccb5648b753c056be970494b32c4a73
7
- data.tar.gz: 519c7b6e9f4817efa2e8fedebdc6e6117228a15f3cdf196e3904458938c1fdc845535aa3a00ab70aec4e8bf242bd87840f7e5bd7b664b40a33ab7c1a11c66e87
6
+ metadata.gz: 0efb1494294fad86bd7b712f297daf11a1ca22dda766436fa5c59fc1c4e71db9657ce20752f60874f9126d37bd2ba04f7c2be50be7ce2921afd55e09d01338a6
7
+ data.tar.gz: e0b07d723a3a90e0dff8e89e5ca56030d660b3428570acb9995ec4a00b80af84a53eeac9d1c1b39d0239b513517eaa2b3b16ffeb3ab0dda79f60acb46b99e08c
@@ -28,7 +28,7 @@ module Actions
28
28
  if repository.redhat?
29
29
  handle_redhat_content(repository)
30
30
  else
31
- handle_custom_content(repository.root) unless skip_environment_update
31
+ handle_custom_content(repository) unless skip_environment_update
32
32
  end
33
33
  end
34
34
 
@@ -42,10 +42,10 @@ module Actions
42
42
  end
43
43
  end
44
44
 
45
- def handle_custom_content(root)
45
+ def handle_custom_content(repository)
46
46
  #if this is the last instance of a custom repo, destroy the content
47
- if root.repositories.count == 1
48
- plan_action(Product::ContentDestroy, root)
47
+ if repository.root.repositories.where.not(id: repository.id).empty?
48
+ plan_action(::Actions::Katello::Product::ContentDestroy, repository.root)
49
49
  end
50
50
  end
51
51
 
@@ -19,11 +19,6 @@ class DisownForemanTemplates < ActiveRecord::Migration[4.2]
19
19
 
20
20
  def update_templates_attributes(attribute_hash)
21
21
  templates = ["puppet.conf", "freeipa_register", "Kickstart default iPXE", "Kickstart default PXELinux", "PXELinux global default"]
22
-
23
- templates.each do |template|
24
- if (template = FakeConfigTemplate.find_by(:name => template))
25
- template.update_attributes(attribute_hash)
26
- end
27
- end
22
+ FakeConfigTemplate.where(name: templates).update_all(attribute_hash)
28
23
  end
29
24
  end
@@ -1,6 +1,7 @@
1
1
  class AddRecurringLogicToSyncPlan < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  add_column :katello_sync_plans, :foreman_tasks_recurring_logic_id, :integer
4
+ add_column :katello_sync_plans, :cron_expression, :string
4
5
  add_foreign_key :katello_sync_plans, :foreman_tasks_recurring_logics, :name => "katello_sync_plan_foreman_tasks_recurring_logic_fk", :column => "foreman_tasks_recurring_logic_id"
5
6
  Katello::SyncPlan.find_each do |sync_plan|
6
7
  User.as_anonymous_admin do
@@ -1,5 +1,5 @@
1
1
  class AddCronLogicToSyncPlans < ActiveRecord::Migration[5.1]
2
2
  def change
3
- add_column :katello_sync_plans, :cron_expression, :string
3
+ #Changes moved to migration class: AddRecurringLogicToSyncPlan
4
4
  end
5
5
  end
@@ -315,6 +315,8 @@ Foreman::Plugin.register :katello do
315
315
  Katello::PermissionCreator.new(self).define
316
316
  add_all_permissions_to_default_roles
317
317
 
318
+ add_permissions_to_default_roles 'System admin' => [:create_lifecycle_environments, :create_content_views]
319
+
318
320
  role 'Register hosts', [
319
321
  :view_hostgroups, :view_activation_keys, :view_hosts,
320
322
  :create_hosts, :edit_hosts, :destroy_hosts,
@@ -11,7 +11,7 @@ namespace :katello do
11
11
  puts "Checking upgradeability...\n\n"
12
12
 
13
13
  # check for any running tasks
14
- task_count = ::ForemanTasks::Task.active.where("label NOT IN (?)", [CP_LISTEN_ACTION, EVENT_QUEUE_ACTION]).count
14
+ task_count = ::ForemanTasks::Task.active.where("label NOT IN (?)", [CP_LISTEN_ACTION, EVENT_QUEUE_ACTION]).where("state != 'scheduled'").count
15
15
  task_status = task_count > 0 ? fail : success
16
16
  puts "Checking for running tasks..."
17
17
  puts "[#{task_status}] - There are #{task_count} active tasks. "
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "3.9.0.rc2".freeze
2
+ VERSION = "3.9.0".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.9.0.rc2
4
+ version: 3.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -2610,9 +2610,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2610
2610
  version: '0'
2611
2611
  required_rubygems_version: !ruby/object:Gem::Requirement
2612
2612
  requirements:
2613
- - - ">"
2613
+ - - ">="
2614
2614
  - !ruby/object:Gem::Version
2615
- version: 1.3.1
2615
+ version: '0'
2616
2616
  requirements: []
2617
2617
  rubyforge_project:
2618
2618
  rubygems_version: 2.6.14.1