mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 11:55:04 -02:30
rework with check if POST exists
This commit is contained in:
committed by
Jeff Bradberry
parent
2359004cc1
commit
3a3284b5df
@@ -15,7 +15,12 @@ def freeze(key):
|
|||||||
|
|
||||||
def parse_description(desc):
|
def parse_description(desc):
|
||||||
options = {}
|
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)
|
match = descRE.match(line)
|
||||||
if not match:
|
if not match:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user