Skip to content

Commit

Permalink
Merge pull request #87 from kasvith/fix/resolver
Browse files Browse the repository at this point in the history
Fixed the params detecting issue
  • Loading branch information
harsha89 authored Aug 7, 2019
2 parents a1e5316 + 0fbbb64 commit 6e8f894
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions import-export-cli/cmd/importAPI.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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)
Expand Down

0 comments on commit 6e8f894

Please sign in to comment.