diff options
author | Endre Karlson <endre.karlson@hp.com> | 2015-08-11 10:12:13 +0200 |
---|---|---|
committer | Endre Karlson <endre.karlson@hp.com> | 2015-08-11 10:12:25 +0200 |
commit | 71f465ca26eb6a3ab3f42159edb3f876d2780383 (patch) | |
tree | 0a3e8fffb38c4601882cc7f70582007357631d41 | |
parent | 401fa6643a07d5ecf33db2ec5469802f9dd90595 (diff) | |
download | python-designateclient-71f465ca26eb6a3ab3f42159edb3f876d2780383.tar.gz |
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
-rw-r--r-- | designateclient/v2/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/designateclient/v2/utils.py b/designateclient/v2/utils.py index 92cded1..5fd6590 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: |