pveceph install: fix fallback for default version

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-19 18:25:45 +02:00
parent be0bdb1a11
commit 861bf37d54

View File

@ -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";