Commit 6d2ce7d9 authored by Cédric de Saint Martin's avatar Cédric de Saint Martin Committed by Rafael Monnerat

slapgrid: mandatory parameters can NOT be empty.

parent 0812d6da
...@@ -102,6 +102,14 @@ def check_missing_parameters(options): ...@@ -102,6 +102,14 @@ def check_missing_parameters(options):
if missing: if missing:
raise RuntimeError('Missing mandatory parameters: %s' % ', '.join(sorted(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): def check_missing_files(options):
req_files = [ 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