katello 4.0.0 → 4.0.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 +4 -4
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +5 -7
- data/app/controllers/katello/api/v2/repositories_controller.rb +4 -3
- data/app/lib/actions/katello/agent_action.rb +26 -17
- data/app/lib/actions/katello/bulk_agent_action.rb +18 -5
- data/app/lib/actions/katello/capsule_content/sync.rb +1 -1
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +44 -6
- data/app/lib/actions/katello/content_view/promote.rb +25 -0
- data/app/lib/actions/katello/content_view/publish.rb +29 -0
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +14 -3
- data/app/lib/actions/katello/jail_concern/content_view.rb +30 -0
- data/app/lib/actions/katello/jail_concern/organization.rb +30 -0
- data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +2 -2
- data/app/lib/actions/katello/repository/check_matching_content.rb +3 -4
- data/app/lib/actions/katello/repository/sync.rb +59 -0
- data/app/lib/actions/pulp3/content_guard/refresh.rb +6 -10
- data/app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb +1 -1
- data/app/lib/katello/agent/client_message_handler.rb +12 -3
- data/app/lib/katello/errors.rb +1 -1
- data/app/lib/katello/event_daemon/monitor.rb +1 -0
- data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +6 -10
- data/app/lib/katello/util/hostgroup_facets_helper.rb +126 -0
- data/app/models/katello/agent/dispatch_history.rb +2 -0
- data/app/models/katello/authorization/content_view.rb +12 -0
- data/app/models/katello/authorization/repository.rb +18 -0
- data/app/models/katello/concerns/hostgroup_extensions.rb +4 -2
- data/app/models/katello/concerns/redhat_extensions.rb +23 -18
- data/app/models/katello/concerns/smart_proxy_extensions.rb +23 -0
- data/app/models/katello/content_view.rb +13 -7
- data/app/models/katello/glue/pulp/repo.rb +0 -19
- data/app/models/katello/ping.rb +3 -10
- data/app/models/katello/repository.rb +16 -2
- data/app/models/katello/root_repository.rb +1 -1
- data/app/services/cert/certs.rb +4 -0
- data/app/services/katello/agent/dispatcher.rb +18 -24
- data/app/services/katello/applicability/applicable_content_helper.rb +8 -6
- data/app/services/katello/managed_content_medium_provider.rb +3 -3
- data/app/services/katello/pulp3/api/content_guard.rb +39 -5
- data/app/services/katello/pulp3/migration.rb +4 -3
- data/app/services/katello/pulp3/repository.rb +32 -4
- data/app/services/katello/pulp3/repository/apt.rb +1 -2
- data/app/services/katello/pulp3/repository/yum.rb +1 -1
- data/app/services/katello/ui_notifications/pulp/proxy_disk_space.rb +1 -0
- data/app/views/overrides/smart_proxies/_download_policy.erb +1 -1
- data/db/migrate/20200514092553_move_katello_fields_from_hostgroups.katello.rb +1 -1
- data/db/migrate/20210119162528_delete_puppet_and_ostree_repos.rb +25 -22
- data/db/migrate/20210512192745_fix_red_hat_root_repository_arch.rb +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/products-bulk-advanced-sync-modal.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +3 -4
- data/lib/katello.rb +1 -1
- data/lib/katello/engine.rb +11 -11
- data/lib/katello/plugin.rb +5 -2
- data/lib/katello/tasks/clean_backend_objects.rake +0 -25
- data/lib/katello/tasks/fix_hostgroup_facets.rake +8 -0
- data/lib/katello/version.rb +1 -1
- data/lib/proxy_api/container_gateway.rb +22 -11
- metadata +28 -10
- data/app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb +0 -17
@@ -1,17 +0,0 @@
|
|
1
|
-
module Actions
|
2
|
-
module Pulp3
|
3
|
-
module CapsuleContent
|
4
|
-
class RefreshContentGuard < Pulp3::AbstractAsyncTask
|
5
|
-
def plan(smart_proxy, options = {})
|
6
|
-
content_guard_api = ::Katello::Pulp3::Api::ContentGuard.new(smart_proxy)
|
7
|
-
content_guard_href = content_guard_api.list&.results&.first&.pulp_href
|
8
|
-
if content_guard_href && options.try(:[], :update)
|
9
|
-
content_guard_api.partial_update content_guard_href
|
10
|
-
else
|
11
|
-
content_guard_api.create
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|