upload can only create (#21513)

old-commit-hash: d066b8f7e813894338b2747c74ad089968ff70e9
This commit is contained in:
Greg Hogan
2021-07-07 18:28:06 -07:00
committed by GitHub
parent 78408b6460
commit a637623fa0
+1 -1
View File
@@ -176,7 +176,7 @@ class Uploader():
else:
cloudlog.debug("uploading %r", fn)
stat = self.normal_upload(key, fn)
if stat is not None and stat.status_code in (200, 201, 412):
if stat is not None and stat.status_code in (200, 201, 403, 412):
cloudlog.event("upload_success" if stat.status_code != 412 else "upload_ignored", key=key, fn=fn, sz=sz, debug=True)
try:
# tag file as uploaded