mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07: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:
parent
8515db8588
commit
1e2ce4c8ab
4 changed files with 45 additions and 1 deletions
|
@ -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 }
|
Loading…
Add table
Add a link
Reference in a new issue