Skip to content

Commit

Permalink
rework with check if POST exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tanganellilore authored and jbradberry committed Jan 15, 2024
1 parent 1b1d3f4 commit ac4903b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion awxkit/awxkit/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac4903b

Please sign in to comment.