mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[XEND] Minor stylistic fixes for XendBootloader.py
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
4c89cbf41f
commit
4cd942004e
1 file changed
+2
-2
@@ -38,7 +38,7 @@ def bootloader(blexec, disk, quiet = 0, blargs = None, imgcfg = None):
|
||||
raise VmError(msg)
|
||||
|
||||
while True:
|
||||
fifo = "/var/lib/xen/xenbl.%s" %(random.randint(0, 32000),)
|
||||
fifo = "/var/lib/xen/xenbl.%s" % random.randint(0, 32000)
|
||||
if not os.path.exists(fifo):
|
||||
break
|
||||
os.mkfifo(fifo, 0600)
|
||||
@@ -48,7 +48,7 @@ def bootloader(blexec, disk, quiet = 0, blargs = None, imgcfg = None):
|
||||
args = [ blexec ]
|
||||
if quiet:
|
||||
args.append("-q")
|
||||
args.append("--output=%s" %(fifo,))
|
||||
args.append("--output=%s" % fifo)
|
||||
if blargs is not None:
|
||||
args.extend(shlex.split(blargs))
|
||||
args.append(disk)
|
||||
|
||||