Skip to content

Commit

Permalink
fix(azure-artifact): support public address in cql_ip_address
Browse files Browse the repository at this point in the history
since 506c0bd azure artifacts
are working with public address, but some of SCT around connecting
to CQL isn't supporting correctly the public option.
  • Loading branch information
fruch committed Apr 23, 2023
1 parent d95ab1b commit 83459e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdcm/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ def _refresh_instance_state(self):

@cached_property
def cql_ip_address(self):
if self.test_config.IP_SSH_CONNECTIONS == 'public':
return self.ip_address
with self.remote_scylla_yaml() as scylla_yaml:
return scylla_yaml.broadcast_rpc_address if scylla_yaml.broadcast_rpc_address else self.ip_address

Expand Down

0 comments on commit 83459e1

Please sign in to comment.