From 8fe2039325ce31c9898d4b1e8a05d5de78a5c09f Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Tue, 2 Jan 2024 20:21:38 +0530 Subject: [PATCH] handle quoted ehnames --- flow/connectors/eventhub/scoped_eventhub.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow/connectors/eventhub/scoped_eventhub.go b/flow/connectors/eventhub/scoped_eventhub.go index 048ce595c8..67ad447566 100644 --- a/flow/connectors/eventhub/scoped_eventhub.go +++ b/flow/connectors/eventhub/scoped_eventhub.go @@ -19,9 +19,12 @@ func NewScopedEventhub(raw string) (ScopedEventhub, error) { return ScopedEventhub{}, fmt.Errorf("invalid scoped eventhub '%s'", raw) } + // support eventhub name with hyphens etc. + eventhubPart := strings.Trim(parts[1], `"`) + return ScopedEventhub{ PeerName: parts[0], - Eventhub: parts[1], + Eventhub: eventhubPart, Identifier: parts[2], }, nil }