Skip to content

Commit b113fb3

Browse files
committed
Accept time resolution param for _cat/nodes.
1 parent 6a45363 commit b113fb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch/client/cat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def master(self, params=None):
134134
params=params)
135135
return data
136136

137-
@query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'v')
137+
@query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'time', 'v')
138138
def nodes(self, params=None):
139139
"""
140140
The nodes command shows the cluster topology.
@@ -146,6 +146,7 @@ def nodes(self, params=None):
146146
master node (default: false)
147147
:arg master_timeout: Explicit operation timeout for connection to master
148148
node
149+
:arg time: The unit in which to display time values
149150
:arg v: Verbose mode. Display column headers, default False
150151
"""
151152
_, data = self.transport.perform_request('GET', '/_cat/nodes',

0 commit comments

Comments
 (0)