From 2c3edf18207dd528e758b8845ab001a300d2bb37 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Tue, 10 Mar 2020 17:17:36 -0700 Subject: [PATCH] endp-pm: Future proof against removing a spurious comma. --- LANforge/Endpoint.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANforge/Endpoint.pm b/LANforge/Endpoint.pm index 9daebf23..5c9f94ff 100644 --- a/LANforge/Endpoint.pm +++ b/LANforge/Endpoint.pm @@ -316,7 +316,7 @@ sub decode { if ($got_endp) { if ( $ln =~ -/Shelf:\s+(\d+)\,\s+Card:\s+(\d+)\s+Port:\s+(\d+)\s+Endpoint:\s+(\d+)\s+Type:\s+(\S+)\s+Pattern:\s+(\S+)/ +/Shelf:\s+(\d+)\,*\s+Card:\s+(\d+)\s+Port:\s+(\d+)\s+Endpoint:\s+(\d+)\s+Type:\s+(\S+)\s+Pattern:\s+(\S+)/ ) { $self->shelf_id($1);