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

changes check for src

This commit is contained in:
Phil 2015-07-06 13:14:18 -05:00 committed by Matt Clay
parent 6abfcffc70
commit 9ad30acd96

View file

@ -30,8 +30,8 @@ $result = New-Object psobject @{
If ($params.src) {
$src = $params.src.toString()
If (-Not (Test-Path -Path $src -PathType Leaf -Or Test-Path -Path $src -PathType Container)) {
Fail-Json $result "$src is not a valid file or directory on the host"
If (-Not (Test-Path -Path $src)) {
Fail-Json $result "$src file or directory does not exist on the host"
}
}
Else {