From 053feda3ff030ad0498321a1fe727226f628320c Mon Sep 17 00:00:00 2001 From: Gabriel Freites Date: Mon, 26 Jun 2023 19:07:47 +0200 Subject: [PATCH] fix: source is valid and fully-qualified url (#524) (#525) The source property of the adapter was set using the URL host field which is incomplete and confusing for users migrating from the VEBA project to Sources. This fix changes the source semantic to be a valid and fully-qualifed URL of the configured vCenter event source. Closes: #523 Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com> Co-authored-by: Michael Gasch <15986659+embano1@users.noreply.github.com> --- pkg/vsphere/adapter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vsphere/adapter.go b/pkg/vsphere/adapter.go index 38c00180a..c8c12dc57 100644 --- a/pkg/vsphere/adapter.go +++ b/pkg/vsphere/adapter.go @@ -73,7 +73,7 @@ func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ceClie logger.Fatalf("unable to create vSphere client: %v", err) } - source := vClient.URL().Host + source := vClient.URL().String() if source == "" { logger.Fatal("unable to determine vSphere client source: empty host") }