From 6ba3e8b974469cc9435a3d2d31515b73c1737b38 Mon Sep 17 00:00:00 2001 From: Derek Horton Date: Fri, 19 Jan 2024 14:17:38 -0600 Subject: [PATCH] Fix sources impl config --- internal/api/connectors/inventory/inventory.go | 2 +- internal/api/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/connectors/inventory/inventory.go b/internal/api/connectors/inventory/inventory.go index 026b899a..3a186717 100644 --- a/internal/api/connectors/inventory/inventory.go +++ b/internal/api/connectors/inventory/inventory.go @@ -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: diff --git a/internal/api/main.go b/internal/api/main.go index 4e04ad3f..54603741 100644 --- a/internal/api/main.go +++ b/internal/api/main.go @@ -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()