Skip to content

Commit

Permalink
Merge pull request #2441 from sirotsinskuy/bug/max-policies
Browse files Browse the repository at this point in the history
Issue 2411 - No error given for too many deployment policies
  • Loading branch information
linggao authored Apr 14, 2021
2 parents a55d23e + 0961f68 commit 9736ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/exchange/business.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func BusinessAddPolicy(org string, credToUse string, policy string, jsonFilePath
if httpCode == 403 {
//try to update the existing policy
httpCode = cliutils.ExchangePutPost("Exchange", http.MethodPut, exchUrl, "orgs/"+polOrg+"/business/policies"+cliutils.AddSlash(policy), cliutils.OrgAndCreds(org, credToUse), []int{201, 404}, policyFile, nil)
if httpCode == 200 {
if httpCode == 201 {
msgPrinter.Printf("Deployment policy: %v/%v updated in the Horizon Exchange", polOrg, policy)
msgPrinter.Println()
} else if httpCode == 404 {
Expand Down

0 comments on commit 9736ec4

Please sign in to comment.