Fix ovirt property error logging
Change-Id: I9bbbc76854e30ccaac8674b737cde237729c7c1f
This commit is contained in:
parent
df2c9cb2b0
commit
2ccc0475ba
@ -110,9 +110,9 @@ def _parse_driver_info(node):
|
||||
conf_value = conf_info.get(prop.replace('ovirt_', ''))
|
||||
value = node_value if node_value is not None else conf_value
|
||||
if value is None and prop not in ['ovirt_ca_file', 'ovirt_insecure']:
|
||||
raise exception.MissingParameterValue(
|
||||
_("%(prop)s is not set either in the configuration or"
|
||||
"in the node's driver_info"))
|
||||
msg = _("%s is not set in either the configuration or "
|
||||
"in the node's driver_info") % prop
|
||||
raise exception.MissingParameterValue(msg)
|
||||
else:
|
||||
driver_info[prop] = value
|
||||
insecure = driver_info['ovirt_insecure']
|
||||
|
Loading…
Reference in New Issue
Block a user