pygrub/grub: always use integer for default entry
authorWei Liu <wei.liu2@citrix.com>
Mon, 1 Apr 2019 10:32:36 +0000 (11:32 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 2 Apr 2019 08:47:38 +0000 (09:47 +0100)
commit767ba397d34848c7e0c4e9cdfc5efa4e0cb61442
treeabd25f676098746994b8ae74d93a61516bb929ee
parent485079e816788d70169f45579e1f5a8f909dc1b3
pygrub/grub: always use integer for default entry

The original code set the default to either a string or an integer
(0) and relies on a Python 2 specific behaviour to work (integer is
allowed to be compared to string in Python 2 but not 3).

Always use integer. The caller (pygrub) already has code to handle
that.

Reported-by: M A Young <m.a.young@durham.ac.uk>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/pygrub/src/GrubConf.py