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

Fixes #37894 - Add content-view-environment list command #959

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

jeremylenz
Copy link
Member

Requires Katello/katello#11170

$ hammer content-view-environment list

---|-------------|-----------------------|---------------------------|---------|-------------|---------------------
ID | LABEL       | LIFECYCLE ENVIRONMENT | CONTENT VIEW              | DEFAULT | HOSTS COUNT | ORGANIZATION        
---|-------------|-----------------------|---------------------------|---------|-------------|---------------------
1  | Library     | Library               | Default Organization View | true    | 0           | Default Organization
2  | Library     | Library               | Default Organization View | true    | 0           | org2                
3  | Library/cv1 | Library               | cv1                       | false   | 1           | Default Organization
---|-------------|-----------------------|---------------------------|---------|-------------|---------------------

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Thanks @jeremylenz left 1 comment but otherwise it works fine. Once that is updated, I will merge it in.

[vagrant@ip-10-0-168-92 hammer-cli-katello]$ hammer content-view-environment list
WARNING: File locale/bn/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/ru/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/te/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
---|----------------|-----------------------|---------------------------|---------|-------------|---------------------
ID | LABEL          | LIFECYCLE ENVIRONMENT | CONTENT VIEW              | DEFAULT | HOSTS COUNT | ORGANIZATION
---|----------------|-----------------------|---------------------------|---------|-------------|---------------------
1  | Library        | Library               | Default Organization View | true    | 0           | Default Organization
2  | Library/Zoo    | Library               | Zoo                       | false   | 0           | Default Organization
3  | Dev/Zoo        | Dev                   | Zoo                       | false   | 0           | Default Organization
4  | Partha/Zoo     | Partha                | Zoo                       | false   | 0           | Default Organization
5  | Library/Mixed  | Library               | Mixed                     | false   | 0           | Default Organization
6  | Partha/Mixed   | Partha                | Mixed                     | false   | 0           | Default Organization
7  | Library/RHEL-9 | Library               | RHEL-9                    | false   | 0           | Default Organization
8  | Dev/RHEL-9     | Dev                   | RHEL-9                    | false   | 0           | Default Organization
---|----------------|-----------------------|---------------------------|---------|-------------|---------------------

lib/hammer_cli_katello/content_view_environment.rb Outdated Show resolved Hide resolved
@jeremylenz
Copy link
Member Author

@chris1984 updated, not tested

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Works well, thanks @jeremylenz

[vagrant@ip-10-0-168-92 hammer-cli-katello]$ hammer content-view-environment list
WARNING: File locale/es/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/gl/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/hi/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/ja/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/kn/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/or/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
WARNING: File locale/ta_IN/LC_MESSAGES/hammer-cli-katello.mo outdated, regenerate with 'make all-mo'
---|----------------|-----------------------|---------------------------|---------|-------------|---------------------
ID | LABEL          | LIFECYCLE ENVIRONMENT | CONTENT VIEW              | DEFAULT | HOSTS COUNT | ORGANIZATION
---|----------------|-----------------------|---------------------------|---------|-------------|---------------------
1  | Library        | Library               | Default Organization View | true    | 0           | Default Organization
2  | Library/Zoo    | Library               | Zoo                       | false   | 0           | Default Organization
3  | Dev/Zoo        | Dev                   | Zoo                       | false   | 0           | Default Organization
4  | Partha/Zoo     | Partha                | Zoo                       | false   | 0           | Default Organization
5  | Library/Mixed  | Library               | Mixed                     | false   | 0           | Default Organization
6  | Partha/Mixed   | Partha                | Mixed                     | false   | 0           | Default Organization
7  | Library/RHEL-9 | Library               | RHEL-9                    | false   | 0           | Default Organization
8  | Dev/RHEL-9     | Dev                   | RHEL-9                    | false   | 0           | Default Organization
9  | Library/RHEL-8 | Library               | RHEL-8                    | false   | 0           | Default Organization
---|----------------|-----------------------|---------------------------|---------|-------------|---------------------

@chris1984 chris1984 merged commit bbffe93 into Katello:main Oct 21, 2024
12 checks passed
@jeremylenz jeremylenz changed the title Fixes #37894 - Add content-view-environments list command Fixes #37894 - Add content-view-environment list command Oct 23, 2024
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