mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
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:
@@ -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 }
|
||||
Reference in New Issue
Block a user