<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 24, 2016 at 12:29 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Mar 24, 2016 at 11:25:08AM +0100, otheus uibk wrote:<br>
> On Thu, Mar 24, 2016 at 9:58 AM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>><br>
> wrote:<br>
><br>
> > virt-what really should be able to output multiple lines.  There are<br>
> > many cases where multiple facts apply to a single guest.<br>
> ><br>
><br>
> I realize I'm new here, but uh, I beg to disagree with the word "many".<br>
> There are three: linux_vserver-guest and rhel5-xen*.<br>
> The last set (RHEL5 based xen) is very close to obsolete and can be treated<br>
> as an exception.<br>
> The one for linux-vserver seems to me also to be an exception and according<br>
> to commit d409914d, done for "backwards compatibility".<br>
> Also I should note that the test case is incomplete; linux_vserver-host is<br>
> a possibility and never made into a test-case.<br>
><br>
> So what I am wondering is: is it *incorrect* to output the identifying fact<br>
> and immediately exit?<br>
> (as I do in my patch)<br>
<br>
</span>Yes it's wrong because it breaks existing callers.<br></blockquote><div><br></div><div>Perhaps I phrased it the wrong way.</div><div><br></div><div>*Excluding the multi-fact exceptions* is it ever a problem to output the fact and immediately exit?<br></div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr">Otheus<div><a href="mailto:otheus.uibk@gmail.com" target="_blank">otheus.uibk@gmail.com</a></div><div><a href="mailto:otheus.shelling@uibk.ac.at" target="_blank">otheus.shelling@uibk.ac.at</a></div><div><br></div></div></div>
</div></div>