direct-io.hg

changeset 12058:509285182efb

[XEND] Minor stylistic fixes for XendBootloader.py

Signed-off-by: Alastair Tse <atse@xensource.com>
author acnt2@huggins.lce.cl.cam.ac.uk
date Thu Oct 05 17:29:19 2006 +0100 (2006-10-05)
parents 6ffb8705f894
children 0ae1d493f37c
files tools/python/xen/xend/XendBootloader.py
line diff
     1.1 --- a/tools/python/xen/xend/XendBootloader.py	Thu Oct 05 17:29:19 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendBootloader.py	Thu Oct 05 17:29:19 2006 +0100
     1.3 @@ -38,7 +38,7 @@ def bootloader(blexec, disk, quiet = 0, 
     1.4          raise VmError(msg)
     1.5  
     1.6      while True:
     1.7 -        fifo = "/var/lib/xen/xenbl.%s" %(random.randint(0, 32000),)
     1.8 +        fifo = "/var/lib/xen/xenbl.%s" % random.randint(0, 32000)
     1.9          if not os.path.exists(fifo):
    1.10              break
    1.11      os.mkfifo(fifo, 0600)
    1.12 @@ -48,7 +48,7 @@ def bootloader(blexec, disk, quiet = 0, 
    1.13          args = [ blexec ]
    1.14          if quiet:
    1.15              args.append("-q")
    1.16 -        args.append("--output=%s" %(fifo,))
    1.17 +        args.append("--output=%s" % fifo)
    1.18          if blargs is not None:
    1.19              args.extend(shlex.split(blargs))
    1.20          args.append(disk)