From 1b0e16d97b60a847b0cdb339b0e8b179adab327b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 19 Dec 2019 15:00:33 +0100 Subject: [PATCH] drop useless drone error message --- CHANGELOG.md | 3 +-- cleanupagents/Cli.py | 2 +- cleanupagents/__init__.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6217eb..b14545b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,2 @@ - BUGFIX - - use drone binary path from config - - fix name of env variable in error message + - drop useless drone error message diff --git a/cleanupagents/Cli.py b/cleanupagents/Cli.py index cc45bbe..b5e96cf 100644 --- a/cleanupagents/Cli.py +++ b/cleanupagents/Cli.py @@ -127,7 +127,7 @@ class AgentCleanup: server=self.config["drone_server"], token=self.config["drone_token"], scaler=scaler, agent=e, force=force, binfile=self.config["drone_bin"])) - if res.returncode > 0: + if res.returncode > 0 and "client error 404" not in humanize(res.stdout): self.log.sysexit_with_message("Command error:\n{}".format(humanize(res.stdout))) if not dry: diff --git a/cleanupagents/__init__.py b/cleanupagents/__init__.py index 5aafe68..b98138d 100644 --- a/cleanupagents/__init__.py +++ b/cleanupagents/__init__.py @@ -2,7 +2,7 @@ __author__ = "Robert Kaussow" __project__ = "drone-cleanup-agents" -__version__ = "0.1.1" +__version__ = "0.1.2" __license__ = "MIT" __maintainer__ = "Robert Kaussow" __email__ = "rkaussow@owncloud.com"