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

Typo in Add-DeprecationWarning call (#22168)

Unfortunately the script does not stop/fail because of such errors.
This commit is contained in:
Dag Wieers 2017-03-02 07:21:22 +01:00 committed by Matt Davis
parent f4f09c9dbf
commit 868d19b509

View file

@ -43,9 +43,9 @@ if ($source) {$source = $source.Tolower()}
if ($upgrade)
{
Add-DeprecateWarning $result "Parameter upgrade=yes is replaced with state=latest"
Add-DeprecationWarning $result "Parameter upgrade=yes is replaced with state=latest"
if ($state -eq "present")
{
{
$state = "latest"
}
}