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