Skip to content

Commit

Permalink
Fixes #36795 - Prepare for SCA-Only (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu authored Oct 3, 2023
1 parent a54dc01 commit 3bc7d4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hammer_cli_katello/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def request_params
if params.key?('simple_content_access')
params["organization"] = params.fetch('organization', {}).merge(
"_simple_content_access" => params['simple_content_access'])
unless params['simple_content_access']
warn "Simple Content Access will be required for all organizations in Katello 4.12."
end
end
params
end
Expand Down
5 changes: 5 additions & 0 deletions lib/hammer_cli_katello/simple_content_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class DisableCommand < HammerCLIKatello::SingleResourceCommand
failure_message _("Could not disable Simple Content Access for this organization")

build_options

def execute
warn "Simple Content Access will be required for all organizations in Katello 4.12."
super
end
end

autoload_subcommands
Expand Down

0 comments on commit 3bc7d4c

Please sign in to comment.