tools/pygrub: Failing to set value to 0 in Grub2ConfigFile
authorMichael Young <m.a.young@durham.ac.uk>
Tue, 13 Aug 2019 20:15:02 +0000 (21:15 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 14 Aug 2019 11:15:17 +0000 (12:15 +0100)
commite5368348d33be8cc476433489e362834a47e4dcf
treee01b5002c52d1b8878bae35f9472b36d7775bc6a
parent435e985b10905845800170e711e5307c12b413e3
tools/pygrub: Failing to set value to 0 in Grub2ConfigFile

In Grub2ConfigFile the code to handle ${saved_entry} and ${next_entry}
sets arg = "0" but this now does nothing following c/s d1b93ea2615bd
"tools/pygrub: Make pygrub understand default entry in string format"
which replaced arg.strip() with arg_strip in the following line.  This
patch restores the previous behaviour.

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/pygrub/src/GrubConf.py