mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-18 17:08:29 +00:00
Merge pull request #29 from NeilHanlon/hotfix
Resolve peridot CLI build error due to unbound variable
This commit is contained in:
commit
2e8303eec0
@ -32,12 +32,13 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"openapi.peridot.resf.org/peridotopenapi"
|
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
"openapi.peridot.resf.org/peridotopenapi"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LookasideUploadTask struct {
|
type LookasideUploadTask struct {
|
||||||
@ -103,7 +104,7 @@ func buildRpmImportMn(_ *cobra.Command, args []string) {
|
|||||||
log.Println("Triggering RPM batch import")
|
log.Println("Triggering RPM batch import")
|
||||||
|
|
||||||
cl := getClient(serviceBuild).(peridotopenapi.BuildServiceApi)
|
cl := getClient(serviceBuild).(peridotopenapi.BuildServiceApi)
|
||||||
_, _, err := cl.RpmLookasideBatchImport(getContext(), projectId).
|
importRes, _, err := cl.RpmLookasideBatchImport(getContext(), projectId).
|
||||||
Body(peridotopenapi.InlineObject4{
|
Body(peridotopenapi.InlineObject4{
|
||||||
LookasideBlobs: &blobs,
|
LookasideBlobs: &blobs,
|
||||||
ForceOverride: &buildRpmImportForceOverride,
|
ForceOverride: &buildRpmImportForceOverride,
|
||||||
|
Loading…
Reference in New Issue
Block a user