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:
parent
401fa6643a
commit
71f465ca26
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user