mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
The name parameter for search_opts is a regex string, so make sure we include start and end of string characters
This commit is contained in:
parent
1609dfbca4
commit
bd3c7c3efa
2 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ def rax_facts(module, address, name, server_id):
|
|||
|
||||
search_opts = {}
|
||||
if name:
|
||||
search_opts = dict(name=name)
|
||||
search_opts = dict(name='^%s$' % name)
|
||||
try:
|
||||
servers = cs.servers.list(search_opts=search_opts)
|
||||
except Exception, e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue