Skip to content

Commit

Permalink
Update checkov/kustomize/runner.py
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Grübel <anton.gruebel@gmail.com>
  • Loading branch information
schosterbarak and gruebel authored Feb 20, 2022
1 parent 89cbfef commit 6194496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkov/kustomize/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def _curWriterValidateStoreMapAndClose(self, cur_writer, FilePath):
itemName.append("noname")

filename = f"{'-'.join(itemName)}.yaml"
newFullPathFilename = str(pathlib.Path(currentFileName).parent) + "/" + filename
newFullPathFilename = str(pathlib.Path(currentFileName).parent / filename)
os.rename(currentFileName, newFullPathFilename)
self.kustomizeFileMappings[newFullPathFilename] = FilePath

Expand Down

0 comments on commit 6194496

Please sign in to comment.