Skip to content

Commit

Permalink
Fix sources impl config
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Jan 19, 2024
1 parent b52b8d4 commit 6ba3e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/connectors/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getSatelliteFacts(facts *[]FactSet) satelliteFacts {
func convertInterfaceToString(v interface{}) string {
switch result := v.(type) {
case float64:
return fmt.Sprintf("%f", result)
return fmt.Sprintf("%d", int(result))
case string:
return v.(string)
default:
Expand Down
2 changes: 1 addition & 1 deletion internal/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func Start(

var sourcesConnectorClient sources.SourcesConnector

if cfg.GetString("sources.connector.impl") == "impl" {
if cfg.GetString("sources.impl") == "impl" {
sourcesConnectorClient = sources.NewSourcesClient(cfg)
} else {
sourcesConnectorClient = sources.NewMockSourcesClient()
Expand Down

0 comments on commit 6ba3e8b

Please sign in to comment.