]> git.proxmox.com Git - pve-storage.git/commitdiff
lio: list_lun: re-use $object variable
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 26 Sep 2019 13:30:27 +0000 (15:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 26 Sep 2019 13:30:27 +0000 (15:30 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/LunCmd/LIO.pm

index f246dbbb55d67e2a71b7fcf76eea6596a0c22bcd..323427232e8b1d2bde94b1bc9bbd61695a8490fd 100644 (file)
@@ -205,7 +205,7 @@ my $list_view = sub {
     my $lun = undef;
 
     my $object = $params[0];
-    my $volname = $extract_volname->($scfg, $params[0]);
+    my $volname = $extract_volname->($scfg, $object);
 
     foreach my $lun (@{$SETTINGS->{target}->{luns}}) {
        if ($lun->{storage_object} eq "$BACKSTORE/$volname") {