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
This commit is contained in:
Endre Karlson 2015-08-11 10:12:13 +02:00
parent 401fa6643a
commit 71f465ca26

View File

@ -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: