From 9139967108c91d969d73bcb2c5461b952fcadd9e Mon Sep 17 00:00:00 2001 From: allburov Date: Tue, 20 Aug 2024 12:44:13 +0700 Subject: [PATCH] removed_artifacts can not be None --- artifactory_cleanup/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifactory_cleanup/cli.py b/artifactory_cleanup/cli.py index 1914e35..999744b 100644 --- a/artifactory_cleanup/cli.py +++ b/artifactory_cleanup/cli.py @@ -201,7 +201,7 @@ def main(self): "file_count": summary.artifacts_removed, "size": summary.artifacts_size } - if summary.removed_artifacts is not None and self._output_artifacts: + if self._output_artifacts: policy["removed_artifacts"] = summary.removed_artifacts result["policies"].append(policy) result["total_size"] = total_size