projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905d734
)
pygrub: fix message in grub parser
author
Wei Liu
<wei.liu2@citrix.com>
Mon, 1 Apr 2019 10:32:35 +0000
(11:32 +0100)
committer
Wei Liu
<wei.liu2@citrix.com>
Tue, 2 Apr 2019 08:47:14 +0000
(09:47 +0100)
The code suggests 0 is allowed. Zero is not a positive number.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/pygrub/src/GrubConf.py
patch
|
blob
|
history
diff --git
a/tools/pygrub/src/GrubConf.py
b/tools/pygrub/src/GrubConf.py
index f8d3799dc0903882a5de6bb630e9d1e0c8d7e99a..0204d410acbc08a385166745cf0a183ded909dbc 100644
(file)
--- a/
tools/pygrub/src/GrubConf.py
+++ b/
tools/pygrub/src/GrubConf.py
@@
-236,7
+236,7
@@
class _GrubConfigFile(object):
self._default = val
if self._default < 0:
- raise ValueError("default must be
posi
tive number")
+ raise ValueError("default must be
non-nega
tive number")
default = property(_get_default, _set_default)
def set_splash(self, val):