Skip to content

Commit

Permalink
fix(cdsctl): delete repo manager (#4436)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Jul 8, 2019
1 parent a7ed831 commit 95b8400
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/cdsclient/client_project_repository_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ func (c *client) ProjectRepositoryManagerList(projectKey string) ([]sdk.ProjectV

func (c *client) ProjectRepositoryManagerDelete(projectKey string, repomanagerName string, force bool) error {
path := fmt.Sprintf("/project/%s/repositories_manager/%s", projectKey, repomanagerName)
if force {
path += "?force=true"
}
var s sdk.ProjectVCSServer
if _, err := c.DeleteJSON(context.Background(), path, &s); err != nil {
return err
Expand Down

0 comments on commit 95b8400

Please sign in to comment.