Skip to content

Commit

Permalink
refacto allowInvalidHostnames -> sslallowInvalidHostnames for coherence
Browse files Browse the repository at this point in the history
  • Loading branch information
poloz-lab committed Oct 7, 2022
1 parent c898a2c commit 40e566d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/mongodb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.mongo_conf
'bindip' => config['net.bindIp'],
'port' => config['net.port'],
'ipv6' => config['net.ipv6'],
'allowInvalidHostnames' => config['net.ssl.allowInvalidHostnames'],
'sslallowInvalidHostnames' => config['net.ssl.allowInvalidHostnames'],
'ssl' => config['net.ssl.mode'],
'sslcert' => config['net.ssl.PEMKeyFile'],
'sslca' => config['net.ssl.CAFile'],
Expand Down Expand Up @@ -64,7 +64,7 @@ def self.tls_is_enabled(config = nil)

def self.ssl_invalid_hostnames(config = nil)
config ||= mongo_conf
config['allowInvalidHostnames']
config['sslallowInvalidHostnames']
end

def self.tls_invalid_hostnames(config = nil)
Expand Down

0 comments on commit 40e566d

Please sign in to comment.