Remove superfluous function
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
56da6a4437
commit
f0080047a3
1 changed files with 5 additions and 9 deletions
|
|
@ -1953,7 +1953,11 @@ func (r *basePoolManager) consumeQueuedJobs() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (r *basePoolManager) UninstallHook(ctx context.Context, url string) error {
|
||||
func (r *basePoolManager) UninstallWebhook(ctx context.Context) error {
|
||||
if r.urls.controllerWebhookURL == "" {
|
||||
return errors.Wrap(runnerErrors.ErrBadRequest, "controller webhook url is empty")
|
||||
}
|
||||
|
||||
allHooks, err := r.listHooks(ctx)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "listing hooks")
|
||||
|
|
@ -2210,14 +2214,6 @@ func (r *basePoolManager) GetPoolByID(poolID string) (params.Pool, error) {
|
|||
}
|
||||
}
|
||||
|
||||
func (r *basePoolManager) UninstallWebhook(ctx context.Context) error {
|
||||
if r.urls.controllerWebhookURL == "" {
|
||||
return errors.Wrap(runnerErrors.ErrBadRequest, "controller webhook url is empty")
|
||||
}
|
||||
|
||||
return r.UninstallHook(ctx, r.urls.controllerWebhookURL)
|
||||
}
|
||||
|
||||
func (r *basePoolManager) GetWebhookInfo(ctx context.Context) (params.HookInfo, error) {
|
||||
allHooks, err := r.listHooks(ctx)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue