We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dda6e15 commit 16006dcCopy full SHA for 16006dc
lib/GLPI/Agent/Task/Inventory/Generic/Databases/MSSQL.pm
@@ -43,8 +43,8 @@ sub _getDatabaseService {
43
44
# Handle default credentials case
45
if (@{$credentials} == 1 && !keys(%{$credentials->[0]})) {
46
- # On windows, we can discover instance names in registry
47
- if (OSNAME eq 'MSWin32') {
+ # On windows, we can discover instance names in registry but not during tests
+ if (OSNAME eq 'MSWin32' && !$params{istest}) {
48
GLPI::Agent::Tools::Win32->require();
49
my $instances = GLPI::Agent::Tools::Win32::getRegistryKey(
50
path => 'HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SQL Server/Instance Names/SQL',
0 commit comments