Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
6159108b
Commit
6159108b
authored
5 years ago
by
Luhan Cheng
Browse files
Options
Downloads
Patches
Plain Diff
fix exist_ok error
parent
08a88c26
No related branches found
No related tags found
3 merge requests
!297
Cicd merge back
,
!284
Cicd
,
!282
CICD
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CICD/ansiblelint/run_lint.py
+4
-2
4 additions, 2 deletions
CICD/ansiblelint/run_lint.py
with
4 additions
and
2 deletions
CICD/ansiblelint/run_lint.py
+
4
−
2
View file @
6159108b
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
07c246f9
·
4 years ago
mentioned in commit
07c246f9
mentioned in commit 07c246f96006888ac50746c86aa0d034cf48941b
Toggle commit list
Andreas Hamacher
@handreas
mentioned in commit
31ff60cd
·
4 years ago
mentioned in commit
31ff60cd
mentioned in commit 31ff60cd14b20c00fc844732cdc2c9f53ba7a205
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment