Merge "Add comment to clarify resource-options jsonschema"

This commit is contained in:
Jenkins 2017-02-01 13:54:23 +00:00 committed by Gerrit Code Review
commit 4869a403a7
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ class ResourceOptionRegistry(object):
'additionalProperties': False}
for opt in self.options:
if opt.json_schema is not None:
# NOTE(notmorgan): All options are nullable. Null indicates
# the option should be reset and removed from the DB store.
schema['properties'][opt.option_name] = validation.nullable(
opt.json_schema)
else: