Skip to content

Commit

Permalink
fix: source is valid and fully-qualified url (#524) (#525)
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 <[email protected]>
Co-authored-by: Michael Gasch <[email protected]>
  • Loading branch information
gabo1208 and embano1 authored Jun 26, 2023
1 parent 8fda92a commit 053feda
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 053feda

Please sign in to comment.