From 2195845fd10f35e967433bbcb2fe62f159d3cdbd Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Mon, 31 Jul 2017 15:59:43 +0300 Subject: [PATCH] Fix exception message in adapter loading string formatting variable was missing Change-Id: I74b614048a1a1fe00ca14fb0313a760909a068ce --- keystoneauth1/loading/adapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystoneauth1/loading/adapter.py b/keystoneauth1/loading/adapter.py index ccd70398..a46f1d2e 100644 --- a/keystoneauth1/loading/adapter.py +++ b/keystoneauth1/loading/adapter.py @@ -177,7 +177,8 @@ class Adapter(base.BaseLoader): if iface not in ('public', 'internal', 'admin'): raise TypeError("'{iface}' is not a valid value for" " valid_interfaces. Valid valies are" - " public, internal or admin") + " public, internal or admin".format( + iface=iface)) kwargs.setdefault('interface', c.valid_interfaces) else: kwargs.setdefault('interface', c.interface)