summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorLorenzo Tanganelli <lorenzo.tanganelli@hotmail.it>2023-11-03 19:22:39 +0100
committerJeff Bradberry <jeff.bradberry@gmail.com>2024-02-07 21:55:19 +0100
commit3a3284b5dfdd6d91622c39a0bebbe741c9d7bc5d (patch)
tree253e1dbfb56e63663111dc33112230d50f7cf448 /awxkit
parentfix decription extraction on export (diff)
downloadawx-3a3284b5dfdd6d91622c39a0bebbe741c9d7bc5d.tar.xz
awx-3a3284b5dfdd6d91622c39a0bebbe741c9d7bc5d.zip
rework with check if POST exists
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/utils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/awxkit/awxkit/api/utils.py b/awxkit/awxkit/api/utils.py
index 8433579bb3..5d09a01954 100644
--- a/awxkit/awxkit/api/utils.py
+++ b/awxkit/awxkit/api/utils.py
@@ -15,7 +15,12 @@ def freeze(key):
def parse_description(desc):
options = {}
- for line in desc.splitlines():
+ desc_lines = []
+ if 'POST' in desc:
+ desc_lines = desc[desc.index('POST') :].splitlines()
+ else:
+ desc_lines = desc.splitlines()
+ for line in desc_lines:
match = descRE.match(line)
if not match:
continue