Skip to content

Commit 5598248

Browse files
committed
add copy_settings=true to url params
1 parent 53b5ee3 commit 5598248

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

curator/actions.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ def do_action(self):
21512151
# Do the shrink
21522152
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))
21532153
try:
2154-
self.client.indices.shrink(index=idx, target=target, body=self.body, wait_for_active_shards=self.wait_for_active_shards)
2154+
self.client.indices.shrink(index=idx, params={'copy_settings':'true'}, target=target, body=self.body, wait_for_active_shards=self.wait_for_active_shards)
21552155
# Wait for it to complete
21562156
if self.wfc:
21572157
self.loggit.debug('Wait for shards to complete allocation for index: {0}'.format(target))
@@ -2188,4 +2188,3 @@ def do_action(self):
21882188
# Just in case it fails after attempting to meet this condition
21892189
self._unblock_writes(idx)
21902190
utils.report_failure(e)
2191-

0 commit comments

Comments
 (0)