win_product_facts: Implement review suggestions (#48573)
This commit is contained in:
parent
886433bd5f
commit
0ede11da3b
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue