Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions

Also available in: Atom PDF