mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-06-26 04:00:53 +02:00
fix mising default role_dir
This commit is contained in:
parent
192f2bf5c7
commit
85d835df48
|
@ -102,9 +102,9 @@ class Annotation:
|
||||||
try:
|
try:
|
||||||
content = {key: json.loads(parts[2].strip())}
|
content = {key: json.loads(parts[2].strip())}
|
||||||
except ValueError:
|
except ValueError:
|
||||||
content = {key: parts[2].strip()}
|
content = [parts[2].strip()]
|
||||||
else:
|
else:
|
||||||
content = parts[2]
|
content = [parts[2]]
|
||||||
|
|
||||||
item.data[key][parts[1]] = content
|
item.data[key][parts[1]] = content
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class AnsibleDoctor:
|
||||||
# TODO: add function to print to stdout instead of file
|
# TODO: add function to print to stdout instead of file
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Generate documentation from annotated Ansible roles using templates")
|
description="Generate documentation from annotated Ansible roles using templates")
|
||||||
parser.add_argument("role_dir", help="role directory (default: current working dir)")
|
parser.add_argument("role_dir", nargs="?", help="role directory (default: current working dir)")
|
||||||
parser.add_argument("-c", "--config", dest="config_file", help="location of configuration file")
|
parser.add_argument("-c", "--config", dest="config_file", help="location of configuration file")
|
||||||
parser.add_argument("-o", "--output", dest="output_dir", action="store",
|
parser.add_argument("-o", "--output", dest="output_dir", action="store",
|
||||||
help="output base dir")
|
help="output base dir")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user