Skip to content

Commit 7bae31b

Browse files
authored
Merge pull request AutomatedLab#785 from raandree/fix/AutomatedLab#782
Fixes AutomatedLab#782
2 parents a376ac1 + 819bb30 commit 7bae31b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AutomatedLab/AutomatedLabDsc.psm1

+2-1
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ function Invoke-LabDscConfiguration
356356
Write-LogFunctionEntry
357357

358358
$lab = Get-Lab
359+
$localLabSoures = Get-LabSourcesLocation -Local
359360
if (-not $lab.Machines)
360361
{
361362
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
372373

373374
if ($PSCmdlet.ParameterSetName -eq 'New')
374375
{
375-
$outputPath = "$($global:labSources)\$(Get-LabConfigurationItem -Name DscMofPath)\$(New-Guid)"
376+
$outputPath = "$localLabSoures\$(Get-LabConfigurationItem -Name DscMofPath)\$(New-Guid)"
376377

377378
if (Test-Path -Path $outputPath)
378379
{

0 commit comments

Comments
 (0)