Skip to content

Commit 3a158c1

Browse files
committed
(fix) MSSQLSERVER case insensitive for conn string
- A user can specify 'mssqlserver' in a manifest, which in turn writes that config to disk for later use. When doing the comparison when building a connection string, MSSQLSERVER should always be left off. Previously, the insensitive match would caused non-working connection strings to be built.
1 parent 8a64158 commit 3a158c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet_x/sqlserver/sql_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_connection_string(config)
3636
'Application Name' => 'Puppet',
3737
'Data Source' => 'localhost'
3838
}
39-
if config['instance'] !~ /^MSSQLSERVER$/
39+
if config['instance'] !~ /^MSSQLSERVER$/i
4040
params['Data Source'] = "localhost\\#{config['instance']};"
4141
end
4242

0 commit comments

Comments
 (0)