Fix exception if glance fails to load schema
* Fixes bug 1016762 Change-Id: Id1f39d39738289161fe43a22c497ee76b7a9574b
This commit is contained in:
parent
5599c951e0
commit
c9599a6755
@ -321,7 +321,8 @@ def get_schema(custom_properties=None):
|
||||
|
||||
def load_custom_properties():
|
||||
"""Find the schema properties files and load them into a dict."""
|
||||
match = CONF.find_file('schema-image.json')
|
||||
filename = 'schema-image.json'
|
||||
match = CONF.find_file(filename)
|
||||
if match:
|
||||
schema_file = open(match)
|
||||
schema_data = schema_file.read()
|
||||
|
Loading…
Reference in New Issue
Block a user