scrub even without sync

This commit is contained in:
Chronial committed 2014-02-15 10:02:04 +01:00
1 parent 62a65b20b1
commit 37c0d52cef
1 file changed
+8 -9
+8 -9
View File
@@ -231,15 +231,14 @@ def run():
if (diff_results["remove"] + diff_results["add"] + diff_results["move"] + if (diff_results["remove"] + diff_results["add"] + diff_results["move"] +
diff_results["update"] == 0): diff_results["update"] == 0):
logging.info("No changes detected, no sync required") logging.info("No changes detected, no sync required")
finish(True) else:
logging.info("Running sync...")
logging.info("Running sync...") try:
try: snapraid_command("sync")
snapraid_command("sync") except subprocess.CalledProcessError as e:
except subprocess.CalledProcessError as e: logging.error(e)
logging.error(e) finish(False)
finish(False) logging.info("*" * 60)
logging.info("*" * 60)
if config["scrub"]["enabled"]: if config["scrub"]["enabled"]:
logging.info("Running scrub...") logging.info("Running scrub...")