Skip to content
Snippets Groups Projects
Commit fe8b493d authored by Luhan Cheng's avatar Luhan Cheng
Browse files

installed pathlib2 on runner

Former-commit-id: 1a6015e5
parent 31ff60cd
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,7 @@ def parse_argument():
parser.add_argument('--logdir', type=Path, default=Path( __file__ + '/../logdir').resolve(), nargs='?', help='log directory default to ./ansiblelint/logdir')
args = parser.parse_args()
try:
args.logdir.mkdir()
except FileExistsError:
pass
args.logdir.mkdir(exist_ok=True)
return args
def parse_rule_output(line):
# (filepath, line, rule, severity, rule_desc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment