Skip to content

Commit

Permalink
fix: source is valid and fully-qualified url (#524)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
embano1 authored and gabo1208 committed Jun 26, 2023
1 parent 862d1eb commit b7e3887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vsphere/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit b7e3887

Please sign in to comment.