From d8c1f67862e2274e667595ad83d21c25c9c0339e Mon Sep 17 00:00:00 2001 From: Kevin Subileau Date: Wed, 22 May 2019 07:44:54 +0200 Subject: [PATCH] win_file_version: fix typos (#56751) ##### SUMMARY Minor fixes in error messages ##### ISSUE TYPE - Bugfix Pull Request ##### COMPONENT NAME win_file_version ##### ADDITIONAL INFORMATION --- lib/ansible/modules/windows/win_file_version.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/windows/win_file_version.ps1 b/lib/ansible/modules/windows/win_file_version.ps1 index 65054434098..7fc6b557eff 100644 --- a/lib/ansible/modules/windows/win_file_version.ps1 +++ b/lib/ansible/modules/windows/win_file_version.ps1 @@ -15,11 +15,11 @@ $result = @{ $path = Get-AnsibleParam -obj $params -name "path" -type "path" -failifempty $true -resultobj $result If (-Not (Test-Path -Path $path -PathType Leaf)){ - Fail-Json $result "Specified path $path does exist or is not a file." + Fail-Json $result "Specified path $path does not exist or is not a file." } $ext = [System.IO.Path]::GetExtension($path) If ( $ext -notin '.exe', '.dll'){ - Fail-Json $result "Specified path $path is not a vaild file type; must be DLL or EXE." + Fail-Json $result "Specified path $path is not a valid file type; must be DLL or EXE." } Try {