drop useless drone error message
This commit is contained in:
parent
0341b4013a
commit
1b0e16d97b
@ -1,3 +1,2 @@
|
|||||||
- BUGFIX
|
- BUGFIX
|
||||||
- use drone binary path from config
|
- drop useless drone error message
|
||||||
- fix name of env variable in error message
|
|
||||||
|
@ -127,7 +127,7 @@ class AgentCleanup:
|
|||||||
server=self.config["drone_server"], token=self.config["drone_token"], scaler=scaler, agent=e, force=force,
|
server=self.config["drone_server"], token=self.config["drone_token"], scaler=scaler, agent=e, force=force,
|
||||||
binfile=self.config["drone_bin"]))
|
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)))
|
self.log.sysexit_with_message("Command error:\n{}".format(humanize(res.stdout)))
|
||||||
|
|
||||||
if not dry:
|
if not dry:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
__author__ = "Robert Kaussow"
|
__author__ = "Robert Kaussow"
|
||||||
__project__ = "drone-cleanup-agents"
|
__project__ = "drone-cleanup-agents"
|
||||||
__version__ = "0.1.1"
|
__version__ = "0.1.2"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
__maintainer__ = "Robert Kaussow"
|
__maintainer__ = "Robert Kaussow"
|
||||||
__email__ = "rkaussow@owncloud.com"
|
__email__ = "rkaussow@owncloud.com"
|
||||||
|
Reference in New Issue
Block a user