Bug #6971
closed
CLI: A number of info command doesn't work if you pass them bad ids
Added by dustin tsang over 10 years ago.
Updated almost 7 years ago.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1085417
Try these commands:
hammer product info --id 885858585885
hammer system info --id 8588585858
You'll get weird results like:
undefined method `readable?' for nil:NilClass
or
Error: 400 Bad Request
I'd expect a message like:
Could not find product with id 885858585885
Currently these commands seem to be having problems (excerpt from https://gist.github.com/dustint-rh/a60d05d0c62549b27dab):
hammer capsule info --id 2141
protected method `resource_name' called for #<Katello::Api::V2::CapsulesController:0x0000001d229e18>
hammer product info --id 2141
no resource loaded
hammer repository info --id 2141
wrong number of arguments (0 for 1)
- Status changed from New to Ready For Testing
- Target version set to 54
- Pull request https://github.com/Katello/hammer-cli-katello/pull/216 added
- Pull request deleted (
)
- Triaged changed from No to Yes
- Pull request added
- Pull request deleted (
https://github.com/Katello/hammer-cli-katello/pull/216)
- Pull request https://github.com/Katello/hammer-cli-katello/pull/216 added
- Pull request deleted (
)
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 13
Also available in: Atom
PDF