[pve-devel] applied: [PATCH qemu-server] fix net regex in qm cleanup
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Sep 21 09:13:08 CEST 2022
On September 20, 2022 4:50 pm, Dominik Csapak wrote:
> the '+' needs to be in the brackets, otherwise '$1' is not the right id
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> PVE/CLI/qm.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm
> index 6a2e161..ca5d25f 100755
> --- a/PVE/CLI/qm.pm
> +++ b/PVE/CLI/qm.pm
> @@ -809,7 +809,7 @@ __PACKAGE__->register_method({
> # we have to cleanup the tap devices after a crash
>
> foreach my $opt (keys %$conf) {
> - next if $opt !~ m/^net(\d)+$/;
> + next if $opt !~ m/^net(\d+)$/;
> my $interface = $1;
> PVE::Network::tap_unplug("tap${vmid}i${interface}");
> }
> --
> 2.30.2
>
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
>
More information about the pve-devel
mailing list