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()