diff --git a/Source/Header/param.ps1 b/Source/Header/param.ps1 index f4f9e3c..05e214c 100644 --- a/Source/Header/param.ps1 +++ b/Source/Header/param.ps1 @@ -6,4 +6,6 @@ param( $MachineData ) -Import-Module Metadata -Force -Args @($Converters) -Verbose:$false -Global \ No newline at end of file +if ($Converters) { + Add-MetadataConverter $Converters +} \ No newline at end of file diff --git a/Specs/Configuration.Steps.ps1 b/Specs/Configuration.Steps.ps1 index 8c0e301..f63b476 100644 --- a/Specs/Configuration.Steps.ps1 +++ b/Specs/Configuration.Steps.ps1 @@ -102,6 +102,8 @@ Given 'the configuration module is imported with testing paths on Linux:' { Set-Variable IsLinux $True -Force -Option ReadOnly, AllScope -Scope Global Import-Module $ModuleBase/Configuration.psd1 -Scope Global Set-Variable IsLinux $False -Force -Option ReadOnly, AllScope -Scope Global + } else { + Import-Module $ModuleBase/Configuration.psd1 -Scope Global } Update-Metadata -Path $ModuleBase/Configuration.psd1 -PropertyName 'PrivateData.PathOverride.MachineData' -Value ""