From 71f465ca26eb6a3ab3f42159edb3f876d2780383 Mon Sep 17 00:00:00 2001 From: Endre Karlson Date: Tue, 11 Aug 2015 10:12:13 +0200 Subject: [PATCH] Don't wildcard resolve names If we wilcard resolve names like if a user passes in "foo" and there's a domain or entity called "foo.io" it will match and return foo.io. Removing the *name* makes it match the wanted behaviour. Change-Id: I0c0167384952d5d302909b06a3f5597add8f9ff9 --- designateclient/v2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designateclient/v2/utils.py b/designateclient/v2/utils.py index 92cded10..5fd6590c 100644 --- a/designateclient/v2/utils.py +++ b/designateclient/v2/utils.py @@ -26,7 +26,7 @@ def resolve_by_name(func, name, *args): if uuidutils.is_uuid_like(name): return name - results = func(criterion={"name": "*%s*" % name}, *args) + results = func(criterion={"name": "%s" % name}, *args) length = len(results) if length == 1: