From 861bf37d54e7cb73372f7f6867f4d65c2f15010a Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 19 May 2021 18:25:45 +0200 Subject: [PATCH] pveceph install: fix fallback for default version Signed-off-by: Thomas Lamprecht --- PVE/CLI/pveceph.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/CLI/pveceph.pm b/PVE/CLI/pveceph.pm index 2745cc62..30e75076 100755 --- a/PVE/CLI/pveceph.pm +++ b/PVE/CLI/pveceph.pm @@ -134,8 +134,7 @@ __PACKAGE__->register_method ({ code => sub { my ($param) = @_; - my $default_vers = qr/^(?:nautilus|octopus)$/; - my $cephver = $param->{version} || $default_vers; + my $cephver = $param->{version} || 'nautilus'; my $repolist; if ($cephver eq 'nautilus') { @@ -151,7 +150,7 @@ __PACKAGE__->register_method ({ PVE::Tools::file_set_contents("/etc/apt/sources.list.d/ceph.list", $repolist); warn "WARNING: installing non-default ceph release '$cephver'!\n" - if $cephver !~ $default_vers; + if $cephver !~ qr/^(?:nautilus|octopus)$/; local $ENV{DEBIAN_FRONTEND} = 'noninteractive'; print "update available package list\n";