From 2ccc0475ba6d5d9d562228644602ecbe8893c582 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Mon, 12 Mar 2018 12:22:03 -0700 Subject: [PATCH] Fix ovirt property error logging Change-Id: I9bbbc76854e30ccaac8674b737cde237729c7c1f --- ironic_staging_drivers/ovirt/ovirt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ironic_staging_drivers/ovirt/ovirt.py b/ironic_staging_drivers/ovirt/ovirt.py index d2d83e4..71e9071 100644 --- a/ironic_staging_drivers/ovirt/ovirt.py +++ b/ironic_staging_drivers/ovirt/ovirt.py @@ -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']