always return 0 for updates unless there is an error

This is more in line with previous behavioru than returning
a status code when no updates are available.
This commit is contained in:
Sarah Hoffmann
2021-02-11 10:01:31 +01:00
parent 24b13a7a87
commit 7cc4c53adb
2 changed files with 6 additions and 9 deletions

View File

@@ -154,8 +154,6 @@ class UpdateReplication:
LOG.warning("No new changes. Sleeping for %d sec.", recheck_interval)
time.sleep(recheck_interval)
return state.value
@staticmethod
def run(args):
@@ -167,4 +165,5 @@ class UpdateReplication:
if args.check_for_updates:
return UpdateReplication._check_for_updates(args)
return UpdateReplication._update(args)
UpdateReplication._update(args)
return 0