UI: Use correct endpoint for force revoke prefix (#16930)

* Use correct endpoint for force revoke prefix

* Add changelog
This commit is contained in:
Chelsea Shaw 2022-08-30 11:33:01 -05:00 committed by GitHub
parent b6c05fae33
commit dd49b3bea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/16930.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix lease force revoke action
```

View File

@ -9,7 +9,7 @@ export default ApplicationAdapter.extend({
}, },
forceRevokePrefix(prefix) { forceRevokePrefix(prefix) {
let url = this.buildURL() + '/leases/revoke-prefix/' + encodePath(prefix); let url = this.buildURL() + '/leases/revoke-force/' + encodePath(prefix);
url = url.replace(/\/$/, ''); url = url.replace(/\/$/, '');
return this.ajax(url, 'PUT'); return this.ajax(url, 'PUT');
}, },