Skip to content

Commit 627f222

Browse files
authored
ES: change PUT update argument (geopython#1216)
1 parent 5e9c82a commit 627f222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygeoapi/provider/elasticsearch_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def update(self, identifier, item):
430430
identifier, json_data = self._load_and_prepare_item(
431431
item, identifier, raise_if_exists=False)
432432

433-
_ = self.es.index(index=self.index_name, id=identifier, **json_data)
433+
_ = self.es.index(index=self.index_name, id=identifier, body=json_data)
434434

435435
return True
436436

0 commit comments

Comments
 (0)