Skip to content

Commit d0571b9

Browse files
committed
[API] Removes return_200_for_cluster_health_timeout from cluster.health
1 parent a5bfedb commit d0571b9

File tree

1 file changed

+1
-3
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions/cluster

1 file changed

+1
-3
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ module Actions
3333
# @option arguments [Boolean] :wait_for_no_relocating_shards Whether to wait until there are no relocating shards in the cluster
3434
# @option arguments [Boolean] :wait_for_no_initializing_shards Whether to wait until there are no initializing shards in the cluster
3535
# @option arguments [String] :wait_for_status Wait until cluster is in a specific state (options: green, yellow, red)
36-
# @option arguments [Boolean] :return_200_for_cluster_health_timeout Whether to return HTTP 200 instead of 408 in case of a cluster health timeout from the server side
3736
# @option arguments [Hash] :headers Custom HTTP headers
3837
#
3938
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.16/cluster-health.html
@@ -71,8 +70,7 @@ def health(arguments = {})
7170
:wait_for_events,
7271
:wait_for_no_relocating_shards,
7372
:wait_for_no_initializing_shards,
74-
:wait_for_status,
75-
:return_200_for_cluster_health_timeout
73+
:wait_for_status
7674
].freeze)
7775
end
7876
end

0 commit comments

Comments
 (0)