diff --git a/lib/ansible/modules/windows/win_product_facts.ps1 b/lib/ansible/modules/windows/win_product_facts.ps1 index cda25826d37..bde347f9186 100644 --- a/lib/ansible/modules/windows/win_product_facts.ps1 +++ b/lib/ansible/modules/windows/win_product_facts.ps1 @@ -5,15 +5,13 @@ #AnsibleRequires -CSharpUtil Ansible.Basic +# This modules does not accept any options $spec = @{ - options = @{} supports_check_mode = $true } $module = [Ansible.Basic.AnsibleModule]::Create($args, $spec) -$module.Result.changed = $false - # First try to find the product key from ACPI try { $product_key = (Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey