Skip to content

Commit

Permalink
Fixes #36773 - hammer erratum list should support --lifecycle-environ…
Browse files Browse the repository at this point in the history
…ment (#908)
  • Loading branch information
lfu authored Sep 25, 2023
1 parent 8330f7a commit ab9f138
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hammer_cli_katello/erratum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class ErratumCommand < HammerCLIKatello::Command

class ListCommand < HammerCLIKatello::ListCommand
extend RepositoryScopedToProduct
include LifecycleEnvironmentNameMapping

validate_repo_name_requires_product_options(:option_repository_name)

Expand All @@ -30,6 +31,8 @@ class ListCommand < HammerCLIKatello::ListCommand
build_options do |o|
o.expand.including(:products, :organizations, :content_views)
end

extend_with(HammerCLIKatello::CommandExtensions::LifecycleEnvironment.new)
end

class InfoCommand < HammerCLIKatello::ErratumInfoCommand
Expand Down

0 comments on commit ab9f138

Please sign in to comment.