Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #37894 - Add activation keys count to CVE list #962

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

jeremylenz
Copy link
Member

@jeremylenz jeremylenz commented Oct 23, 2024

Activation keys count was just added to the API. This adds it to Hammer output.
Requires Katello/katello#11170

# hammer content-view-environment list
---|---------|-----------------------|---------------------------|---------|-------------|-----------------------|---------------------
ID | LABEL   | LIFECYCLE ENVIRONMENT | CONTENT VIEW              | DEFAULT | HOSTS COUNT | ACTIVATION KEYS COUNT | ORGANIZATION        
---|---------|-----------------------|---------------------------|---------|-------------|-----------------------|---------------------
1  | Library | Library               | Default Organization View | true    | 1           | 1                     | Default Organization
---|---------|-----------------------|---------------------------|---------|-------------|-----------------------|---------------------

@parthaa
Copy link
Contributor

parthaa commented Oct 23, 2024

Suggested patch

diff --git a/lib/hammer_cli_katello/content_view_environment.rb b/lib/hammer_cli_katello/content_view_environment.rb
index ea6d191..4034a7f 100644
--- a/lib/hammer_cli_katello/content_view_environment.rb
+++ b/lib/hammer_cli_katello/content_view_environment.rb
@@ -6,7 +6,7 @@ module HammerCLIKatello
       output do
         field :id, _("Id")
         field :label, _("Label")
-        from :environment do
+        from :lifecycle_environment do
           field :name, _("Lifecycle Environment")
         end
         from :content_view do

Copy link
Contributor

@parthaa parthaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a suggested change but optional. Works well

@parthaa parthaa merged commit 1eaac14 into Katello:main Oct 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants