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

installed pathlib2 on runner

Former-commit-id: 1a6015e5
parent 07c246f9
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,7 @@ def parse_argument(): ...@@ -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') parser.add_argument('--logdir', type=Path, default=Path( __file__ + '/../logdir').resolve(), nargs='?', help='log directory default to ./ansiblelint/logdir')
args = parser.parse_args() args = parser.parse_args()
try: args.logdir.mkdir(exist_ok=True)
args.logdir.mkdir()
except FileExistsError:
pass
return args return args
def parse_rule_output(line): def parse_rule_output(line):
# (filepath, line, rule, severity, rule_desc) # (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