We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa99159 commit e12497cCopy full SHA for e12497c
elasticsearch-api/api-spec-testing/wipe_cluster.rb
@@ -308,7 +308,7 @@ def wipe_all_indices(client)
308
309
def wipe_searchable_snapshot_indices(client)
310
indices = client.cluster.state(metric: 'metadata', filter_path: 'metadata.indices.*.settings.index.store.snapshot')
311
- return if indices.dig('metadata', 'indices')
+ return unless indices.dig('metadata', 'indices')
312
313
indices.each do |index|
314
client.indices.delete(index: index, ignore: 404)
0 commit comments