[pve-devel] [PATCH] fix #1004 adapt regex to new schema
    Thomas Lamprecht 
    t.lamprecht at proxmox.com
       
    Thu Jun  2 10:21:12 CEST 2016
    
    
  
On 02.06.2016 09:27, Wolfgang Link wrote:
> ---
>  pve-zsync | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/pve-zsync b/pve-zsync
> index 212ada9..932c299 100644
> --- a/pve-zsync
> +++ b/pve-zsync
> @@ -766,6 +766,8 @@ sub parse_disks {
>  	if($line =~ m/^(?:((?:virtio|ide|scsi|sata|mp)\d+)|rootfs): ([^:]+:)([A-Za-z0-9\-]+),(.*)$/) {
>  	    $disk = $3;
>  	    $stor = $2;
> +
> +	    $stor =~ s/^file=|volume=//;
The line start anchor (^) does only apply to file here but not to volume, is that intended?
  $stor =~ s/^file=|^volume=//;
or maybe better:
  $stor =~ s/^(file|volume)=//;
>  	} else {
>  	    print "Disk: \"$line\" will not include in pve-sync\n" if $get_err || $error;
>  	    next;
>
    
    
More information about the pve-devel
mailing list