Bug 2231258
| Summary: | hammer host list does not print custom parameters even if they are present in the fields list. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Vedashree Deshpande <vdeshpan> |
| Component: | Hosts | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.11.0 | CC: | aruzicka, ofedoren, rlavi |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | Flags: | aruzicka:
needinfo?
(vdeshpan) |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Vedashree Deshpande
2023-08-11 06:37:44 UTC
> hammer host list --fields 'Name,Subscription Status,OS,Environment,Content View,Registered,Last Checkin' If you run hammer host list --help, it shows you which fields it can show, and as far as I know only the fields in "Predefined field sets" can be shown. From my machine Predefined field sets: -----------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -----------------------|-----|---------|----- Id | x | x | x Name | x | x | x Operating system | x | x | Host group | x | x | Ip | x | x | Mac | x | x | Global status | x | x | Organization | x | | Location | x | | Additional information | x | | Content view | x | x | Lifecycle environment | x | x | Security | x | | Bugfix | x | | Enhancement | x | | Trace status | x | x | -----------------------|-----|---------|----- Most of the fields you're passing in are not in that list. Yes, you can pass in literally anything, but hammer will not understand you. I don't see us adding support for allowing to show every single possible field anytime soon. If you really need all those details, I'd suggest putting together a report template which, when used to generate a report, would give you all the bits and pieces you might want to see. Would that be an option for you? > Satellite 6.11 onward As in this used to work on 6.10 and older? |