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
|
#AnsibleRequires -CSharpUtil Ansible.Basic
|
||||||
|
|
||||||
|
# This modules does not accept any options
|
||||||
$spec = @{
|
$spec = @{
|
||||||
options = @{}
|
|
||||||
supports_check_mode = $true
|
supports_check_mode = $true
|
||||||
}
|
}
|
||||||
|
|
||||||
$module = [Ansible.Basic.AnsibleModule]::Create($args, $spec)
|
$module = [Ansible.Basic.AnsibleModule]::Create($args, $spec)
|
||||||
|
|
||||||
$module.Result.changed = $false
|
|
||||||
|
|
||||||
# First try to find the product key from ACPI
|
# First try to find the product key from ACPI
|
||||||
try {
|
try {
|
||||||
$product_key = (Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey
|
$product_key = (Get-CimInstance -Class SoftwareLicensingService).OA3xOriginalProductKey
|
||||||
|
|
Loading…
Reference in a new issue