diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xm/addlabel.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/python/xen/xm/addlabel.py b/tools/python/xen/xm/addlabel.py index 961787a76e..b4130cc2f2 100644 --- a/tools/python/xen/xm/addlabel.py +++ b/tools/python/xen/xm/addlabel.py @@ -64,12 +64,13 @@ def validate_config_file(configfile): return 0 # sanity check on the data from the file + # requiring 'memory,' 'name,' and ether 'kernel' or 'bootloader' count = 0 - required = ['kernel', 'memory', 'name'] + required = ['kernel', 'bootloader', 'memory', 'name'] for (k, v) in locs.items(): if k in required: count += 1 - if count != 3: + if count < len(required) - 1: print "Invalid configuration file." return 0 else: |