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

fix exist_ok error

parent 08a88c26
No related branches found
No related tags found
3 merge requests!297Cicd merge back,!284Cicd,!282CICD
......@@ -13,8 +13,10 @@ 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()
args.logdir.mkdir(exist_ok=True)
try:
args.logdir.mkdir()
except FileExistsError:
pass
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