From 17601804f75789052f798fbeacc1bd22c08efed3 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Tue, 6 Sep 2022 15:01:42 -0400 Subject: [PATCH] Resolve peridot CLI build error due to unbound variable --- peridot/cmd/v1/peridot/build_rpm_import.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/peridot/cmd/v1/peridot/build_rpm_import.go b/peridot/cmd/v1/peridot/build_rpm_import.go index 1036b63a..4eac3ae5 100644 --- a/peridot/cmd/v1/peridot/build_rpm_import.go +++ b/peridot/cmd/v1/peridot/build_rpm_import.go @@ -32,12 +32,13 @@ package main import ( "encoding/base64" - "github.com/spf13/cobra" "io/ioutil" "log" - "openapi.peridot.resf.org/peridotopenapi" "os" "time" + + "github.com/spf13/cobra" + "openapi.peridot.resf.org/peridotopenapi" ) type LookasideUploadTask struct { @@ -103,7 +104,7 @@ func buildRpmImportMn(_ *cobra.Command, args []string) { log.Println("Triggering RPM batch import") cl := getClient(serviceBuild).(peridotopenapi.BuildServiceApi) - _, _, err := cl.RpmLookasideBatchImport(getContext(), projectId). + importRes, _, err := cl.RpmLookasideBatchImport(getContext(), projectId). Body(peridotopenapi.InlineObject4{ LookasideBlobs: &blobs, ForceOverride: &buildRpmImportForceOverride,