summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorJesse Wattenbarger <jwattenb@redhat.com>2023-06-21 18:37:59 +0200
committerGitHub <noreply@github.com>2023-06-21 18:37:59 +0200
commit897a19e127e7f127da1b5e0adc3c184773853b7e (patch)
tree8420e61c873296e697d4b3fb3e6dd0f043804388 /awxkit
parentImprove performance for awx cli export (#13182) (diff)
downloadawx-897a19e127e7f127da1b5e0adc3c184773853b7e.tar.xz
awx-897a19e127e7f127da1b5e0adc3c184773853b7e.zip
Add None check back to get_post_fields (#14155)
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/page.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/awxkit/awxkit/api/pages/page.py b/awxkit/awxkit/api/pages/page.py
index d43840e536..c47ff20a08 100644
--- a/awxkit/awxkit/api/pages/page.py
+++ b/awxkit/awxkit/api/pages/page.py
@@ -525,6 +525,9 @@ class PageCache(object):
options_page = self.get_options(page)
+ if options_page is None:
+ return None
+
if 'POST' not in options_page.r.headers.get('Allow', ''):
return None