lio: list_lun: re-use $object variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -205,7 +205,7 @@ my $list_view = sub {
|
|||||||
my $lun = undef;
|
my $lun = undef;
|
||||||
|
|
||||||
my $object = $params[0];
|
my $object = $params[0];
|
||||||
my $volname = $extract_volname->($scfg, $params[0]);
|
my $volname = $extract_volname->($scfg, $object);
|
||||||
|
|
||||||
foreach my $lun (@{$SETTINGS->{target}->{luns}}) {
|
foreach my $lun (@{$SETTINGS->{target}->{luns}}) {
|
||||||
if ($lun->{storage_object} eq "$BACKSTORE/$volname") {
|
if ($lun->{storage_object} eq "$BACKSTORE/$volname") {
|
||||||
|
|||||||
Reference in New Issue
Block a user