From 0fbbb649eb860504298bf4b7f7302cb5fafb5658 Mon Sep 17 00:00:00 2001 From: Kasun Vithanage Date: Wed, 7 Aug 2019 17:10:57 +0530 Subject: [PATCH] fixed the params detecting issue --- import-export-cli/cmd/importAPI.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/import-export-cli/cmd/importAPI.go b/import-export-cli/cmd/importAPI.go index faa5fc886..316103d61 100644 --- a/import-export-cli/cmd/importAPI.go +++ b/import-export-cli/cmd/importAPI.go @@ -677,14 +677,14 @@ func importAPI(endpoint, httpMethod, filePath, accessToken string, extraParams m // ImportAPI function is used with import-api command func ImportAPI(credential credentials.Credential, importPath, apiImportExportEndpoint, exportDirectory, apiParamsPath string) error { - apiFilePath, err := resolveImportFilePath(importPath, exportDirectory) + resolvedApiFilePath, err := resolveImportFilePath(importPath, exportDirectory) if err != nil { return err } - utils.Logln(utils.LogPrefixInfo+"API Location:", apiFilePath) + utils.Logln(utils.LogPrefixInfo+"API Location:", resolvedApiFilePath) utils.Logln(utils.LogPrefixInfo + "Creating workspace") - tmpPath, err := getTempApiDirectory(apiFilePath) + tmpPath, err := getTempApiDirectory(resolvedApiFilePath) if err != nil { return err } @@ -699,7 +699,7 @@ func ImportAPI(credential credentials.Credential, importPath, apiImportExportEnd utils.Logln(utils.LogPrefixError + err.Error()) } }() - apiFilePath = tmpPath + apiFilePath := tmpPath utils.Logln(utils.LogPrefixInfo + "Pre Processing API...") err = preProcessAPI(apiFilePath)