Skip to content

Commit 392977f

Browse files
committed
add copy_settings=true to url params
1 parent 000b188 commit 392977f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

curator/actions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,7 @@ def do_action(self):
23042304
# Do the shrink
23052305
self.loggit.info('Shrinking index "{0}" to "{1}" with settings: {2}, wait_for_active_shards={3}'.format(idx, target, self.body, self.wait_for_active_shards))
23062306
try:
2307-
self.client.indices.shrink(index=idx, target=target, body=self.body, wait_for_active_shards=self.wait_for_active_shards)
2307+
self.client.indices.shrink(index=idx, params={'copy_settings':'true'}, target=target, body=self.body, wait_for_active_shards=self.wait_for_active_shards)
23082308
# Wait for it to complete
23092309
if self.wfc:
23102310
self.loggit.debug('Wait for shards to complete allocation for index: {0}'.format(target))
@@ -2341,4 +2341,3 @@ def do_action(self):
23412341
# Just in case it fails after attempting to meet this condition
23422342
self._unblock_writes(idx)
23432343
utils.report_failure(e)
2344-

0 commit comments

Comments
 (0)