1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

win_product_facts: Implement review suggestions (#48573)

This commit is contained in:
Dag Wieers 2018-11-12 20:44:57 +01:00 committed by Jordan Borean
parent 886433bd5f
commit 0ede11da3b

View file

@ -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