Skip to content

Commit

Permalink
Merge pull request #351 from wasuradananjith/import-update-with-simil…
Browse files Browse the repository at this point in the history
…ar-version-2.0.x

[2.x] Add quotation marks to the API version when searching the exact API
  • Loading branch information
malinthaprasan authored Jun 19, 2020
2 parents 32f2719 + 2e3d352 commit bb8367e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import-export-cli/cmd/importAPI.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func injectParamsToAPI(importPath, paramsPath, importEnvironment string) error {

// getApiID returns id of the API by using apiInfo which contains name, version and provider as info
func getApiID(name, version, provider, environment, accessOAuthToken string) (string, error) {
apiQuery := fmt.Sprintf("name:\"%s\" version:%s", name, version)
apiQuery := fmt.Sprintf("name:\"%s\" version:\"%s\"", name, version)
if provider != "" {
apiQuery += " provider:" + provider
}
Expand Down

0 comments on commit bb8367e

Please sign in to comment.