Skip to content

Commit

Permalink
[8013] Use "host" property from server_config.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Nov 11, 2024
1 parent 719e3fd commit 717708d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/irods/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def is_server_listening_for_client_requests(self):
zone_port = int(self.config.server_config['zone_port'])

with contextlib.closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s:
local_server_host = self.config.client_environment['irods_host']
local_server_host = self.config.server_config['host']

if s.connect_ex((local_server_host, zone_port)) == 0:
l.debug('Successfully connected to [%s:%s].', local_server_host, zone_port)
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_irods.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def setup_client_environment(irods_config):
service_account_dict = {
'schema_name': 'service_account_environment',
'schema_version': 'v5',
'irods_host': irods.lib.get_hostname(),
'irods_host': irods_config.server_config['host'],
'irods_port': irods_config.server_config['zone_port'],
'irods_default_resource': irods_config.server_config['default_resource_name'],
'irods_home': '/'.join(['', irods_config.server_config['zone_name'], 'home', irods_config.server_config['zone_user']]),
Expand Down

0 comments on commit 717708d

Please sign in to comment.