Skip to content

Commit 93dca00

Browse files
committed
bootloader: Parse baud as int
When reading a GRUB2 config, parse the baud rate as an int for consistency with the other bootloader types. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
1 parent c0c65b8 commit 93dca00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xcp/bootloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def parse_boot_entry(line):
371371
if match:
372372
serial = {
373373
'port': int(match.group(1)),
374-
'baud': match.group(2)
374+
'baud': int(match.group(2)),
375375
}
376376
elif l.startswith('terminal_'):
377377
pass

0 commit comments

Comments
 (0)