mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
win_file_version: fix typos (#56751)
##### SUMMARY Minor fixes in error messages ##### ISSUE TYPE - Bugfix Pull Request ##### COMPONENT NAME win_file_version ##### ADDITIONAL INFORMATION
This commit is contained in:
committed by
Jordan Borean
parent
6900378766
commit
d8c1f67862
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user