Skip to content

Commit

Permalink
Fixed lint in services files
Browse files Browse the repository at this point in the history
  • Loading branch information
rpdevmp committed Jan 29, 2025
1 parent eb72cb2 commit fb5ab7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 3 additions & 2 deletions tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,11 +2268,12 @@ def scale_cluster(self, nodes_count):
"""Scale out/in cluster to specified number of nodes.
"""
return self._cloud_cluster.scale_cluster(nodes_count)

def set_cluster_config_overrides(self, cluster_id, config_values):
"""Scale out/in cluster to specified number of nodes.
"""
return self._cloud_cluster.set_cluster_config_overrides(cluster_id, config_values)
return self._cloud_cluster.set_cluster_config_overrides(
cluster_id, config_values)

def clean_cluster(self):
"""Cleans state from a running cluster to make it seem like it was newly provisioned.
Expand Down
15 changes: 5 additions & 10 deletions tests/rptest/services/redpanda_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,13 +1576,8 @@ def set_cluster_config_overrides(self, cluster_id, config_values):
Example: [{"name": "iceberg_enabled", "value": "true"}]
:return: Response object from the cloud admin API.
"""
payload = {
'cluster_id': cluster_id,
'values': config_values
}

return self.cloudv2._http_post(
base_url=self.config.admin_api_url,
endpoint='/SetClusterConfigOverrides',
json=payload
)
payload = {'cluster_id': cluster_id, 'values': config_values}

return self.cloudv2._http_post(base_url=self.config.admin_api_url,
endpoint='/SetClusterConfigOverrides',
json=payload)

0 comments on commit fb5ab7c

Please sign in to comment.