mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Correct problem with changed:true
I have just changed a small piece of this module to avoid to return always that the task is changed
This commit is contained in:
parent
0606233431
commit
ab7aa73cdb
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ Function Choco-IsInstalled
|
||||||
Throw "Error checking installation status for $package"
|
Throw "Error checking installation status for $package"
|
||||||
}
|
}
|
||||||
|
|
||||||
If ("$results" -match " $package .* (\d+) packages installed.")
|
If ("$results" -match "$package .* (\d+) packages installed.")
|
||||||
{
|
{
|
||||||
return $matches[1] -gt 0
|
return $matches[1] -gt 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue