diff options
author | Jesse Wattenbarger <jwattenb@redhat.com> | 2023-06-21 18:37:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 18:37:59 +0200 |
commit | 897a19e127e7f127da1b5e0adc3c184773853b7e (patch) | |
tree | 8420e61c873296e697d4b3fb3e6dd0f043804388 | |
parent | Improve performance for awx cli export (#13182) (diff) | |
download | awx-897a19e127e7f127da1b5e0adc3c184773853b7e.tar.xz awx-897a19e127e7f127da1b5e0adc3c184773853b7e.zip |
Add None check back to get_post_fields (#14155)
-rw-r--r-- | awxkit/awxkit/api/pages/page.py | 3 |
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 |