-
Notifications
You must be signed in to change notification settings - Fork 83
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 #37232 - Added extra info for CV & repos #931
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chris1984
reviewed
Mar 7, 2024
parthaa
force-pushed
the
restrict-to-arch
branch
from
March 8, 2024 14:05
ab4c18b
to
847c90a
Compare
parthaa
force-pushed
the
restrict-to-arch
branch
from
March 8, 2024 14:06
847c90a
to
44681bb
Compare
chris1984
reviewed
Mar 8, 2024
setup_sync_state(data) | ||
setup_booleans(data) | ||
setup_mirroring_policy(data) | ||
setup_content_counts(data) if data["content_counts"] | ||
data | ||
end | ||
|
||
def setup_arch_and_os(data) | ||
arch = data["arch"] | ||
data["restrict_to_arch"] = arch == 'noarch' ? _('No restriction') : arch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool, didn't know you could assign a variable and do a ternary operator on the same line. Learned something new today 🤯
chris1984
approved these changes
Mar 8, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, works well.
[vagrant@hammer hammer-cli-katello]$ hammer repository info --id=1
Id: 1
Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8
Description:
Organization: Default Organization
Red Hat Repository: yes
Content Type: yum
Content Label: rhel-8-for-x86_64-appstream-rpms
Mirroring Policy: Complete Mirroring
Url: https://cdn.redhat.com/content/dist/rhel8/8/x86_64/appstream/os
Publish Via HTTP: no
Published At: https://devel.croberts.io/pulp/content/Default_Organization/Library/content/dist/rhel8/8/x86_64/appstream/os/
Relative Path: Default_Organization/Library/content/dist/rhel8/8/x86_64/appstream/os
Download Policy: on_demand
Ignorable Content Units:
Publish Settings:
Restrict to architecture: x86_64
Restrict to OS Version: rhel-8
[vagrant@hammer hammer-cli-katello]$ hammer content-view info --id=5
Id: 5
Name: Bigger bag of junk
Label: Bigger_bag_of_junk
Composite: yes
Description:
Content Host Count: 0
Solve Dependencies: no
Organization: Default Organization
Yum Repositories:
1) Id: 23
Name: Modules
Label: Modules
2) Id: 24
Name: Animals
Label: Animals
File Repositories:
1) Id: 22
Name: File
Label: File
Container Image Repositories:
1) Id: 25
Name: Docker
Label: Docker
OSTree Repositories:
1) Id: 21
Name: OSTree
Label: OSTree
Ansible Repositories:
1) Id: 27
Name: Ansible
Label: Ansible
File Repositories:
1) Id: 22
Name: File
Label: File
Debian Repositories:
1) Id: 26
Name: Debian
Label: Debian
Python Repositories:
1) Id: 20
Name: Python
Label: Python
Lifecycle Environments:
1) Id: 1
Name: Library
Versions:
1) Id: 5
Version: 1.0
Published: 2024/03/08 14:40:40
Components:
1) Id: 4
Name: Bag of junk 1.0
Latest version: yes
Not yet published: no
Always update to the latest: yes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added new attributes for
repository info
andcontent-view info
commandsfor repository info it adds attributes to
Publish settings
Restrict to architecture
Restrict to OS Versions
For content view info it shows information along
Always update to the latest