From 4adf9bab674120667472a1476c5de80e556d4140 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Mon, 30 Sep 2019 09:32:58 -0400 Subject: [PATCH] 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) --- awxkit/awxkit/cli/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awxkit/awxkit/cli/options.py b/awxkit/awxkit/cli/options.py index 7069941b2e..70601f2ddd 100644 --- a/awxkit/awxkit/cli/options.py +++ b/awxkit/awxkit/cli/options.py @@ -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 = {