diff --git a/lib/ansible/module_utils/vultr.py b/lib/ansible/module_utils/vultr.py index f52052502ca..18b7ccc1664 100644 --- a/lib/ansible/module_utils/vultr.py +++ b/lib/ansible/module_utils/vultr.py @@ -217,7 +217,7 @@ class Vultr: return {} for r_id, r_data in r_list.items(): - if r_data[key] == value: + if str(r_data[key]) == str(value): self.api_cache.update({ resource: r_data })