rbd plugin: list: drop outdated error message check
This became outdated after Ceph commit ac547a5b7dc ("rbd: return 0 and
an empty list when pool is entirely empty") 11 years ago. See also:
https://tracker.ceph.com/issues/6693
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Fabian Grünbichler
parent
a1140d77d0
commit
b3c844b858
@ -216,12 +216,7 @@ sub rbd_ls {
|
|||||||
my $parser = sub { $raw .= shift };
|
my $parser = sub { $raw .= shift };
|
||||||
|
|
||||||
my $cmd = $rbd_cmd->($scfg, $storeid, 'ls', '-l', '--format', 'json');
|
my $cmd = $rbd_cmd->($scfg, $storeid, 'ls', '-l', '--format', 'json');
|
||||||
eval {
|
run_rbd_command($cmd, errmsg => "rbd error", errfunc => sub {}, outfunc => $parser);
|
||||||
run_rbd_command($cmd, errmsg => "rbd error", errfunc => sub {}, outfunc => $parser);
|
|
||||||
};
|
|
||||||
my $err = $@;
|
|
||||||
|
|
||||||
die $err if $err && $err !~ m/doesn't contain rbd images/ ;
|
|
||||||
|
|
||||||
my $result;
|
my $result;
|
||||||
if ($raw eq '') {
|
if ($raw eq '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user