From abf7cf97dfc4f3d3efafb126015176defeffcf80 Mon Sep 17 00:00:00 2001
From: Ryan Butler <ryancbutler@users.noreply.github.com>
Date: Wed, 14 Aug 2019 04:26:04 -0500
Subject: [PATCH] VMware: Fix typo in vmware_host_dns_facts.py (#60542)

Correct *search_doamin* to *search_domain*
---
 lib/ansible/modules/cloud/vmware/vmware_host_dns_facts.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ansible/modules/cloud/vmware/vmware_host_dns_facts.py b/lib/ansible/modules/cloud/vmware/vmware_host_dns_facts.py
index a31068d18fa..d9e156930df 100644
--- a/lib/ansible/modules/cloud/vmware/vmware_host_dns_facts.py
+++ b/lib/ansible/modules/cloud/vmware/vmware_host_dns_facts.py
@@ -74,7 +74,7 @@ hosts_dns_facts:
                     "ip_address": [
                         "8.8.8.8"
                     ],
-                    "search_doamin": [
+                    "search_domain": [
                         "localdomain"
                     ],
                     "virtual_nic_device": "vmk0"
@@ -103,7 +103,7 @@ class VmwareDnsFactsManager(PyVmomi):
             host_facts['host_name'] = dns_config.hostName
             host_facts['domain_name'] = dns_config.domainName
             host_facts['ip_address'] = [ip for ip in dns_config.address]
-            host_facts['search_doamin'] = [domain for domain in dns_config.searchDomain]
+            host_facts['search_domain'] = [domain for domain in dns_config.searchDomain]
             hosts_facts[host.name] = host_facts
         return hosts_facts