slapgrid: mandatory parameters can NOT be empty.

parent 02752056
......@@ -102,6 +102,14 @@ def check_missing_parameters(options):
if missing:
raise RuntimeError('Missing mandatory parameters: %s' % ', '.join(sorted(missing)))
# parameter can NOT be empty string or None
for option in required:
if not options.get(option):
missing.add(option)
if missing:
raise RuntimeError('Mandatory parameters present but empty: %s' % ', '.join(sorted(missing)))
def check_missing_files(options):
req_files = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment