support missing drive letters in PS path type (#29884)

* fixes #26623
* Test-Path (and thus `-type path` in Get-AnsibleParam) fail on a nonexistent drive letter, since it can't be mapped to a PSProvider.
* added support and basic smoke tests for
This commit is contained in:
Matt Davis 2017-09-12 09:51:48 -07:00 committed by GitHub
commit 1e2ce4c8ab
4 changed files with 45 additions and 1 deletions

View file

@ -0,0 +1,9 @@
#powershell
#Requires -Module Ansible.ModuleUtils.Legacy
$params = Parse-Args $args
$path = Get-AnsibleParam -Obj $params -Name path -Type path
Exit-Json @{ path=$path }