From 50fee594302a13b1576ecfabdef8188de2d6527c Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Sun, 9 Apr 2023 17:22:52 +0200 Subject: [PATCH] Fix versions --- tests/Integration/DSC_SqlSetup.config.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Integration/DSC_SqlSetup.config.ps1 b/tests/Integration/DSC_SqlSetup.config.ps1 index 3f6197e5b7..8e1db61cc9 100644 --- a/tests/Integration/DSC_SqlSetup.config.ps1 +++ b/tests/Integration/DSC_SqlSetup.config.ps1 @@ -414,7 +414,14 @@ Configuration DSC_SqlSetup_InstallSqlServerModule_Config } # Install the required SqlServer module version. - $installedModule = Install-Module @installModuleParameters + $installedModule = Install-Module @installModuleParameters | + Where-Object -FilterScript { + <# + Need to filter out the right module since it also installs + the dependent module dbatools.library. + #> + $_.Name -eq 'dbatools' + } Write-Verbose -Message ('Installed dbatools module version {0}' -f $installedModule.Version) }