Ansible files with lint violations were supposed to be excluded from the following Sage pipeline, but they were not excluded unless there were syntax check errors at the first execution of ansible-lint.
With fixing the issue, I have added following changes:
Added a warning message when there were files excluded from Sage pipeline:
if len(exclude_paths) > 0:
# Rename excluded files to have __EXCLUDED__ extension so that they won't be processed by sage
_rename_excluded_files(exclude_paths, repository_path)
_logger.warning(
"Following files are excluded from training set generation due to ansible-lint rule "
"violations: %s",
",".join(exclude_paths),
)
- Added a warning message when there was no training dataset found in the source
if len(record_lines) == 0:
_logger.warning("No training data set was created.")
Ansible files with lint violations were supposed to be excluded from the following Sage pipeline, but they were not excluded unless there were syntax check errors at the first execution of ansible-lint.
With fixing the issue, I have added following changes: