mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
cli: make "detail" actions actually respect Allow: headers
This commit is contained in:
@@ -13,6 +13,12 @@ from awxkit.api.pages import Page
|
||||
from awxkit.cli.options import ResourceOptionsParser
|
||||
|
||||
|
||||
class ResourceOptionsParser(ResourceOptionsParser):
|
||||
|
||||
def get_allowed_options(self):
|
||||
self.allowed_options = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']
|
||||
|
||||
|
||||
class OptionsPage(Page):
|
||||
|
||||
def options(self):
|
||||
|
||||
Reference in New Issue
Block a user