diff --git a/apps/cli/executables/go/iiwf_trigger/pkg/ingest/get_info.go b/apps/cli/executables/go/iiwf_trigger/pkg/ingest/get_info.go index d8e0a732b05e113a7f29860c6eeb21f4d6adeccc..f7b9674b04655bfd816f440d7b2f6e92824bd2a6 100644 --- a/apps/cli/executables/go/iiwf_trigger/pkg/ingest/get_info.go +++ b/apps/cli/executables/go/iiwf_trigger/pkg/ingest/get_info.go @@ -26,6 +26,7 @@ import ( "io" "io/ioutil" "net/http" + "net/url" "path/filepath" ) @@ -38,6 +39,7 @@ type CapoInput struct { CapoProfile string } +//checkError /** * Check if an error happened and panic on it if so * @@ -79,7 +81,7 @@ func GetCalibrationLocator(imgSetPath string, input CapoInput) string { imgSet := filepath.Base(imgSetPath) // Make the REST call - lookupUrl := locatorEndpoint + imgSet + lookupUrl := locatorEndpoint + url.QueryEscape(imgSet) resp, err := http.Get(lookupUrl) checkError(err)