[PATCH] Fix the logging of the spice-vdagent status

Brian C. Lane bcl at redhat.com
Wed Aug 7 21:24:58 UTC 2013


On Wed, Aug 07, 2013 at 05:14:24PM -0400, David Shea wrote:
> ---
>  anaconda | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/anaconda b/anaconda
> index b17f7bd..9348be8 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -82,11 +82,12 @@ def exitHandler(rebootData, storage, exitCode=None):
>              os.system("systemctl --no-wall reboot")
>  
>  def startSpiceVDAgent():
> -    status = os.system("spice-vdagent")
> +    status = iutil.execWithRedirect("spice-vdagent", [])
>  
> -    # An error status usually means that we're not running on a virt guest
> -    if not status:
> +    if status:
>          log.info("spice-vdagent exited with status %d" % status)
> +    else:
> +        log.info("Started spice-vdagent.")
>  
>  def startMetacityWM():
>      childpid = os.fork()
> @@ -148,7 +149,6 @@ def doExtraX11Actions(opts):
>      set_x_resolution(opts.runres)
>  
>      startSpiceVDAgent()
> -    log.info("Started spice-vdagent.")
>  
>  def setupPythonUpdates():
>      from distutils.sysconfig import get_python_lib
> -- 
> 1.8.3.1

Ack
-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130807/78b75e5f/attachment.sig>


More information about the anaconda-patches mailing list