mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-21 21:54:26 +00:00
Declarative templates (#266)
This commit is contained in:
@ -309,7 +309,9 @@ class ORMMixin(ModelMixin):
|
||||
try:
|
||||
self.etag = client.insert_entity(self.table_name(), raw)
|
||||
except AzureConflictHttpError:
|
||||
return Error(code=ErrorCode.UNABLE_TO_CREATE, errors=["row exists"])
|
||||
return Error(
|
||||
code=ErrorCode.UNABLE_TO_CREATE, errors=["entry already exists"]
|
||||
)
|
||||
elif self.etag and require_etag:
|
||||
self.etag = client.replace_entity(
|
||||
self.table_name(), raw, if_match=self.etag
|
||||
|
Reference in New Issue
Block a user