mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-03-10 12:58:25 +03:00
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:
parent
a1140d77d0
commit
b3c844b858
@ -216,12 +216,7 @@ sub rbd_ls {
|
||||
my $parser = sub { $raw .= shift };
|
||||
|
||||
my $cmd = $rbd_cmd->($scfg, $storeid, 'ls', '-l', '--format', 'json');
|
||||
eval {
|
||||
run_rbd_command($cmd, errmsg => "rbd error", errfunc => sub {}, outfunc => $parser);
|
||||
};
|
||||
my $err = $@;
|
||||
|
||||
die $err if $err && $err !~ m/doesn't contain rbd images/ ;
|
||||
run_rbd_command($cmd, errmsg => "rbd error", errfunc => sub {}, outfunc => $parser);
|
||||
|
||||
my $result;
|
||||
if ($raw eq '') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user