We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a376ac1 + 819bb30 commit 7bae31bCopy full SHA for 7bae31b
AutomatedLab/AutomatedLabDsc.psm1
@@ -356,6 +356,7 @@ function Invoke-LabDscConfiguration
356
Write-LogFunctionEntry
357
358
$lab = Get-Lab
359
+ $localLabSoures = Get-LabSourcesLocation -Local
360
if (-not $lab.Machines)
361
{
362
Write-LogFunctionExitWithError -Message 'No machine definitions imported, so there is nothing to do. Please use Import-Lab first'
@@ -372,7 +373,7 @@ function Invoke-LabDscConfiguration
372
373
374
if ($PSCmdlet.ParameterSetName -eq 'New')
375
- $outputPath = "$($global:labSources)\$(Get-LabConfigurationItem -Name DscMofPath)\$(New-Guid)"
376
+ $outputPath = "$localLabSoures\$(Get-LabConfigurationItem -Name DscMofPath)\$(New-Guid)"
377
378
if (Test-Path -Path $outputPath)
379
0 commit comments