Merge pull request #4845 from ryanpetrello/cli-fix-ujt-allow

cli: fix `awx unified_job_templates`

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-09-30 14:10:14 +00:00 committed by GitHub
commit 1d2123a4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ class ResourceOptionsParser(object):
def get_allowed_options(self):
self.allowed_options = self.page.connection.options(
self.page.endpoint + '1'
).headers['Allow'].split(', ')
).headers.get('Allow', '').split(', ')
def build_list_actions(self):
action_map = {