这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/client/keystores/keystores.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func importKeystores(wg *sync.WaitGroup, jobs <-chan string, errs chan<- error)
if err != nil {
errs <- err
continue
} else if resp.StatusCode%100 != 2 && resp.StatusCode != http.StatusConflict {
} else if resp.StatusCode/100 != 2 && resp.StatusCode != http.StatusConflict {
// We ignore 409s as the only configurable parameter of a keystore is it's name. Hence if it already exists
// then it is consistent with what is being imported.
errs <- fmt.Errorf("apigee responded with HTTP %d: %s", resp.StatusCode, resp.Status)
Expand Down
2 changes: 1 addition & 1 deletion internal/client/references/references.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func importReferences(knownRefs map[string]bool, wg *sync.WaitGroup, jobs <-chan
if err != nil {
errs <- err
continue
} else if resp.StatusCode%100 != 2 {
} else if resp.StatusCode/100 != 2 && resp.StatusCode != http.StatusConflict {
errs <- fmt.Errorf("failed to import reference, apigee returned HTTP %d: %s", resp.StatusCode, resp.Status)
continue
}
Expand Down
2 changes: 1 addition & 1 deletion internal/client/targetservers/targetservers.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func importServers(knownServers map[string]bool, wg *sync.WaitGroup, jobs <-chan
if err != nil {
errs <- err
continue
} else if resp.StatusCode%100 != 2 {
} else if resp.StatusCode/100 != 2 && resp.StatusCode != http.StatusConflict {
errs <- fmt.Errorf("could not import targetserver, apigee responded with HTTP %d: %s", resp.StatusCode, resp.Status)
}

Expand Down