mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
cli: fix awx unified_job_templates
this endpoint doesn't return an HTTP Allow header at all (because you can't really do anything other than list templates)
This commit is contained in:
@@ -91,7 +91,7 @@ class ResourceOptionsParser(object):
|
|||||||
def get_allowed_options(self):
|
def get_allowed_options(self):
|
||||||
self.allowed_options = self.page.connection.options(
|
self.allowed_options = self.page.connection.options(
|
||||||
self.page.endpoint + '1'
|
self.page.endpoint + '1'
|
||||||
).headers['Allow'].split(', ')
|
).headers.get('Allow', '').split(', ')
|
||||||
|
|
||||||
def build_list_actions(self):
|
def build_list_actions(self):
|
||||||
action_map = {
|
action_map = {
|
||||||
|
|||||||
Reference in New Issue
Block a user