Skip to content

Commit 7054066

Browse files
committed
check if $version is defined before versioncmp
1 parent 7ad25d4 commit 7054066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/repo.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
if ($repo_location != undef){
4141
$location = $repo_location
4242
}
43-
elsif (versioncmp($version, '3.0.0') >= 0) {
43+
elsif $version and (versioncmp($version, '3.0.0') >= 0) {
4444
$mongover = split($version, '[.]')
4545
$location = $::operatingsystem ? {
4646
'Debian' => 'https://repo.mongodb.org/apt/debian',

0 commit comments

Comments
 (0)