|
|
@ -74,7 +74,7 @@ hosts_dns_facts:
|
|
|
|
"ip_address": [
|
|
|
|
"ip_address": [
|
|
|
|
"8.8.8.8"
|
|
|
|
"8.8.8.8"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"search_doamin": [
|
|
|
|
"search_domain": [
|
|
|
|
"localdomain"
|
|
|
|
"localdomain"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"virtual_nic_device": "vmk0"
|
|
|
|
"virtual_nic_device": "vmk0"
|
|
|
@ -103,7 +103,7 @@ class VmwareDnsFactsManager(PyVmomi):
|
|
|
|
host_facts['host_name'] = dns_config.hostName
|
|
|
|
host_facts['host_name'] = dns_config.hostName
|
|
|
|
host_facts['domain_name'] = dns_config.domainName
|
|
|
|
host_facts['domain_name'] = dns_config.domainName
|
|
|
|
host_facts['ip_address'] = [ip for ip in dns_config.address]
|
|
|
|
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
|
|
|
|
hosts_facts[host.name] = host_facts
|
|
|
|
return hosts_facts
|
|
|
|
return hosts_facts
|
|
|
|
|
|
|
|
|
|
|
|