Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Feb 3, 2025
1 parent 14537ab commit 4759497
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions elastic/logs/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,12 @@

async def setup_local_remote(es, params):
response = await es.cluster.state()
master_node = response['master_node']
master_node = response["master_node"]
response = await es.nodes.info()
ip = response["nodes"][master_node]["transport_address"]
b = {"cluster.remote.local.seeds": ip}
response = await es.cluster.put_settings(persistent=b)
return {
"weight": 1,
"unit": "ops"
}
return {"weight": 1, "unit": "ops"}

def register(registry):
registry.register_param_source("initial-indices-source", InitialIndicesParamSource)
Expand Down

0 comments on commit 4759497

Please sign in to comment.