From 8fd48f0d1360cbf5b653c83a1a20cd46103d3f54 Mon Sep 17 00:00:00 2001 From: David Allen Date: Fri, 20 Jun 2025 14:16:00 -0600 Subject: [PATCH] refactor: renamed funcs --- cmd/collect.go | 2 +- cmd/scan.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/collect.go b/cmd/collect.go index 4ee985a..f73de24 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -36,7 +36,7 @@ var CollectCmd = &cobra.Command{ Long: "Send request(s) to a collection of hosts running Redfish services found stored from the 'scan' in cache.\nSee the 'scan' command on how to perform a scan.", Run: func(cmd *cobra.Command, args []string) { // get probe states stored in db from scan - scannedResults, err := sqlite.GetScannedAssets(cachePath) + scannedResults, err := sqlite.GetRemoteAssets(cachePath) if err != nil { log.Error().Err(err).Msgf("failed to get scanned results from cache") } diff --git a/cmd/scan.go b/cmd/scan.go index a005dab..bfd5288 100644 --- a/cmd/scan.go +++ b/cmd/scan.go @@ -154,7 +154,7 @@ var ScanCmd = &cobra.Command{ // TODO: change this to use an extensible plugin system for storage solutions // (i.e. something like cache.InsertScannedAssets(path, assets) which implements a Cache interface) if len(foundAssets) > 0 { - err = sqlite.InsertScannedAssets(cachePath, foundAssets...) + err = sqlite.InsertRemoteAssets(cachePath, foundAssets...) if err != nil { log.Error().Err(err).Msg("failed to write scanned assets to cache") }