Allow cloning if content.json update fails
This commit is contained in:
parent
12154613c2
commit
9b6c624554
1 changed files with 1 additions and 1 deletions
|
@ -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"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue