File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/main/java/org/opensearch/security/resources Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -689,19 +689,19 @@ public void patchSharingInfo(
689689 try (ThreadContext .StoredContext ctx = this .threadPool .getThreadContext ().stashContext ()) {
690690 // update the record
691691 IndexRequest ir = client .prepareIndex (resourceSharingIndex )
692- .setId (resourceId )
693- .setRefreshPolicy (WriteRequest .RefreshPolicy .IMMEDIATE )
694- .setSource (updatedSharingInfo .toXContent (jsonBuilder (), ToXContent .EMPTY_PARAMS ))
695- .setOpType (DocWriteRequest .OpType .INDEX )
696- .request ();
692+ .setId (resourceId )
693+ .setRefreshPolicy (WriteRequest .RefreshPolicy .IMMEDIATE )
694+ .setSource (updatedSharingInfo .toXContent (jsonBuilder (), ToXContent .EMPTY_PARAMS ))
695+ .setOpType (DocWriteRequest .OpType .INDEX )
696+ .request ();
697697
698698 client .index (ir , ActionListener .wrap (idxResponse -> {
699699 ctx .restore ();
700700 LOGGER .info (
701- "Successfully updated {} resource sharing info for resource {} in index {}." ,
702- resourceSharingIndex ,
703- resourceId ,
704- resourceIndex
701+ "Successfully updated {} resource sharing info for resource {} in index {}." ,
702+ resourceSharingIndex ,
703+ resourceId ,
704+ resourceIndex
705705 );
706706
707707 listener .onResponse (updatedSharingInfo );
You can’t perform that action at this time.
0 commit comments