From 0b493a533b3e186a6a38f9fab49dfb6deabd9436 Mon Sep 17 00:00:00 2001 From: Marc Campbell Date: Tue, 29 Oct 2019 21:08:58 +0000 Subject: [PATCH] Fix --- ffi/main.go | 1 - pkg/analyze/download.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ffi/main.go b/ffi/main.go index 24d3f1047..22fe48f85 100644 --- a/ffi/main.go +++ b/ffi/main.go @@ -4,7 +4,6 @@ import "C" import ( "fmt" - "context" "encoding/json" "gopkg.in/yaml.v2" diff --git a/pkg/analyze/download.go b/pkg/analyze/download.go index df1e24655..1ad2a2b5e 100644 --- a/pkg/analyze/download.go +++ b/pkg/analyze/download.go @@ -20,7 +20,7 @@ type fileContentProvider struct { rootDir string } -func DownloadAndAnalyze(analyzersSpec string, bundleURL string) ([]*AnalyzeResult, error) { +func DownloadAndAnalyze(bundleURL string, analyzersSpec string) ([]*AnalyzeResult, error) { tmpDir, err := ioutil.TempDir("", "troubleshoot-k8s") if err != nil { return nil, errors.Wrap(err, "failed to create temp dir")