uvt-simplestreams-libvirt query returns 0 on both success and failure

Bug #2043834 reported by Jessica K. Litwin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uvtool
Won't Fix
Undecided
Unassigned

Bug Description

Hello,

It appears 'uvt-simplestreams-libvirt query' returns 0 both on success and failure; I would expect it to return 1 if no images match the specified query. Is it possible to add?

description: updated
Revision history for this message
Robie Basak (racb) wrote :

Thank you for the report.

Sorry, I disagree on the expected results here. There's a difference between "failed to execute the query" and "the query succeeded with 0 results", and returning 1 if there were no results would conflate with the first. I believe TAOUP agrees. The output can be inspected to see if there were zero results and this is independent of the exit code.

Changed in uvtool:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.