]> git.proxmox.com Git - pve-storage.git/commitdiff
find_free_diskname: fixup regex match operator
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Sep 2018 09:04:33 +0000 (11:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Sep 2018 09:21:37 +0000 (11:21 +0200)
Co-developed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/RBDPlugin.pm

index 0acfb2d468ffc6a64635ac594a56aa97a654d43f..41d89b5bc32197594bc064d06e3906408d4c24a2 100644 (file)
@@ -339,7 +339,7 @@ my $find_free_diskname = sub {
 
     my $parser = sub {
        my $line = shift;
-       if ($line = m/^(.*)$/) { # untaint
+       if ($line =~ m/^(.*)$/) { # untaint
            push @$disk_list, $1;
        }
     };