Skip to content

Commit f0188db

Browse files
committed
db: remove unnecessary sensitive string unwrap logic
Unwrapping a plain string just returns the string, so no need to check if it's sensitive.
1 parent 19b9dcc commit f0188db

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

manifests/db.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@
4040
tries => $tries,
4141
}
4242

43-
if $password_hash =~ Sensitive[String] {
43+
if $password_hash {
4444
$hash = $password_hash.unwrap
45-
} elsif $password_hash {
46-
$hash = $password_hash
4745
} elsif $password {
4846
$hash = mongodb_password($user, $password)
4947
} else {

0 commit comments

Comments
 (0)