Allow cloning if content.json update fails

This commit is contained in:
shortcutme 2019-03-15 23:57:06 +01:00
parent 12154613c2
commit 9b6c624554
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -972,7 +972,7 @@ class UiWebsocket(object):
if site.bad_files: if site.bad_files:
for bad_inner_path in list(site.bad_files.keys()): for bad_inner_path in list(site.bad_files.keys()):
is_user_file = "cert_signers" in site.content_manager.getRules(bad_inner_path) is_user_file = "cert_signers" in site.content_manager.getRules(bad_inner_path)
if not is_user_file: if not is_user_file and bad_inner_path != "content.json":
self.cmd("notification", ["error", _["Clone error: Site still in sync"]]) self.cmd("notification", ["error", _["Clone error: Site still in sync"]])
return {"error": "Site still in sync"} return {"error": "Site still in sync"}