From f92f73936602f6f8cfee0672c12f29a4f008fa3a Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Wed, 18 Jun 2014 09:36:10 -0500 Subject: [PATCH] Need to call ToString Platform to get the string --- library/windows/setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/windows/setup.ps1 b/library/windows/setup.ps1 index 9b77487c42..585be6317e 100644 --- a/library/windows/setup.ps1 +++ b/library/windows/setup.ps1 @@ -49,7 +49,7 @@ $osversion = [Environment]::OSVersion Set-Attr $result.ansible_facts "ansible_hostname" $env:COMPUTERNAME; Set-Attr $result.ansible_facts "ansible_fqdn" "$([System.Net.Dns]::GetHostByName((hostname)).HostName)" -Set-Attr $result.ansible_facts "ansible_system" $osversion.Platform +Set-Attr $result.ansible_facts "ansible_system" $osversion.Platform.ToString() Set-Attr $result.ansible_facts "ansible_os_family" "Windows" Set-Attr $result.ansible_facts "ansible_distribution" $osversion.VersionString Set-Attr $result.ansible_facts "ansible_distribution_version" $osversion.Version.ToString()