mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-21 04:10:41 +00:00
fix: fix syntax issue in annotation parser (#725)
This commit is contained in:
parent
951f4394da
commit
f1bd734498
@ -10,3 +10,4 @@ ansible-.+
|
||||
toc
|
||||
GPL-3.0
|
||||
(P|p)re-(C|c)ommit
|
||||
JSON
|
||||
|
@ -119,7 +119,7 @@ class Annotation:
|
||||
|
||||
if parts[2] not in multiline_char and parts[2].startswith("$"):
|
||||
source = parts[2].replace("$", "").strip()
|
||||
content = self._str_to_json(key, source, rfile, num, line)
|
||||
content = self._str_to_json(key, source, rfile, num)
|
||||
|
||||
item.data[key][parts[1]] = content
|
||||
|
||||
|
@ -74,7 +74,7 @@ class Parser:
|
||||
|
||||
tags = []
|
||||
for task in raw:
|
||||
task_tags = task.get("tags")
|
||||
task_tags = task.get("tags", [])
|
||||
if isinstance(task_tags, str):
|
||||
task_tags = [task_tags]
|
||||
|
||||
|
@ -127,11 +127,15 @@ options:
|
||||
|
||||
## Environment Variables
|
||||
|
||||
{{< hint type=note >}}
|
||||
List configuration options need to be passed as JSON strings.
|
||||
{{< /hint >}}
|
||||
|
||||
```Shell
|
||||
ANSIBLE_DOCTOR_BASE_DIR=
|
||||
ANSIBLE_DOCTOR_DRY_RUN=False
|
||||
ANSIBLE_DOCTOR_EXCLUDE_FILES=
|
||||
ANSIBLE_DOCTOR_EXCLUDE_TAGS=
|
||||
ANSIBLE_DOCTOR_EXCLUDE_FILES="['molecule/']"
|
||||
ANSIBLE_DOCTOR_EXCLUDE_TAGS="[]"
|
||||
|
||||
ANSIBLE_DOCTOR_ROLE__NAME=
|
||||
ANSIBLE_DOCTOR_ROLE__AUTODETECT=True
|
||||
|
Loading…
Reference in New Issue
Block a user