Add Test-DSCConfigurationDataDeployment function and related enhancements
This commit is contained in:
19
Private/Resolve-ConfigurationDataSourcePath.ps1
Normal file
19
Private/Resolve-ConfigurationDataSourcePath.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
function Resolve-ConfigurationDataSourcePath {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]
|
||||
$Path,
|
||||
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]
|
||||
$DeploymentPath
|
||||
)
|
||||
|
||||
$BasePath = Split-Path -Path (Repair-ConfigurationDataPathEncoding -Path $DeploymentPath) -Parent
|
||||
if([string]::IsNullOrWhiteSpace($BasePath)){
|
||||
$BasePath = (Get-Location).Path
|
||||
}
|
||||
|
||||
return Resolve-ConfigurationDataTemplatePath -Path $Path -BasePath $BasePath
|
||||
}
|
||||
Reference in New Issue
Block a user