From d73575ab05f73670ca0bfddb5c5ece43bd799cae Mon Sep 17 00:00:00 2001 From: David Allen Date: Wed, 24 Jul 2024 10:24:12 -0600 Subject: [PATCH] Fixed imports and removed unused query params --- cmd/collect.go | 2 +- cmd/root.go | 2 +- cmd/update.go | 14 ++++++-------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/cmd/collect.go b/cmd/collect.go index 3641a55..eb4574b 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -5,9 +5,9 @@ import ( "os/user" magellan "github.com/OpenCHAMI/magellan/internal" - "github.com/OpenCHAMI/magellan/internal/api/smd" "github.com/OpenCHAMI/magellan/internal/db/sqlite" "github.com/OpenCHAMI/magellan/internal/log" + "github.com/OpenCHAMI/magellan/pkg/smd" "github.com/cznic/mathutil" "github.com/sirupsen/logrus" "github.com/spf13/cobra" diff --git a/cmd/root.go b/cmd/root.go index 40f7407..6571d9d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -21,7 +21,7 @@ import ( "os/user" magellan "github.com/OpenCHAMI/magellan/internal" - "github.com/OpenCHAMI/magellan/internal/api/smd" + "github.com/OpenCHAMI/magellan/pkg/smd" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/cmd/update.go b/cmd/update.go index 87f2282..9613f64 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -36,14 +36,12 @@ var updateCmd = &cobra.Command{ Component: component, TransferProtocol: transferProtocol, QueryParams: magellan.QueryParams{ - Drivers: []string{"redfish"}, - Preferred: "redfish", - Protocol: protocol, - Host: host, - Username: username, - Password: password, - Timeout: timeout, - Port: port, + Protocol: protocol, + Host: host, + Username: username, + Password: password, + Timeout: timeout, + Port: port, }, }