Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cube-doctor
Commits
9cb9913bdb5c
Commit
889eafff
authored
Oct 20, 2021
by
Laurent Peuch
Browse files
fix: yaml.load without a loader doesn't exist anymore
parent
ba7db2bc06ba
Pipeline
#89315
passed with stage
in 33 minutes and 27 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
cube_doctor/transforms/add_yamllint.py
View file @
9cb9913b
...
...
@@ -119,7 +119,7 @@ class AddYamlLint(Command):
# reread it because we've just modified it
gitlab_ci_content
=
repo
.
read_file
(
".gitlab-ci.yml"
)
gitlab_ci_yaml
=
yaml
.
load
(
gitlab_ci_content
)
gitlab_ci_yaml
=
yaml
.
safe_
load
(
gitlab_ci_content
)
if
not
gitlab_ci_yaml
.
get
(
"image"
,
""
).
strip
().
startswith
(
"python"
):
context
[
"image"
]
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment