Skip to content

Commit

Permalink
convert apstra errors on deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajagopalans committed Oct 16, 2023
1 parent dfc176c commit a79dfc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apstra/api_iba_dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (o *Client) updateIbaDashboard(ctx context.Context, blueprintId ObjectId, i
}

func (o *Client) deleteIbaDashboard(ctx context.Context, blueprintId ObjectId, id ObjectId) error {
return o.talkToApstra(ctx, &talkToApstraIn{
return convertTtaeToAceWherePossible(o.talkToApstra(ctx, &talkToApstraIn{
method: http.MethodDelete, urlStr: fmt.Sprintf(apiUrlIbaDashboardsById, blueprintId, id),
})
}))
}
4 changes: 2 additions & 2 deletions apstra/api_iba_probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ func (o *Client) getIbaProbe(ctx context.Context, bpId ObjectId, id ObjectId) (*
}

func (o *Client) deleteIbaProbe(ctx context.Context, bpId ObjectId, id ObjectId) error {
return o.talkToApstra(ctx, &talkToApstraIn{
return convertTtaeToAceWherePossible(o.talkToApstra(ctx, &talkToApstraIn{
method: http.MethodDelete,
urlStr: fmt.Sprintf(apiUrlIbaProbesById, bpId, id),
})
}))
}
4 changes: 2 additions & 2 deletions apstra/api_iba_widgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ func (o *Client) createIbaWidget(ctx context.Context, bpId ObjectId, widget *raw
}

func (o *Client) deleteIbaWidget(ctx context.Context, bpId ObjectId, id ObjectId) error {
return o.talkToApstra(ctx, &talkToApstraIn{
return convertTtaeToAceWherePossible(o.talkToApstra(ctx, &talkToApstraIn{
method: http.MethodDelete,
urlStr: fmt.Sprintf(apiUrlIbaWidgetsById, bpId, id),
})
}))
}

0 comments on commit a79dfc1

Please sign in to comment.