From b769eef759ce56a9d367f9e22f86009c751e32ba Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Thu, 3 Aug 2023 11:05:28 +0200 Subject: [PATCH] use the new function agent.get_hostname() --- imageroot/actions/get-configuration/20read | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageroot/actions/get-configuration/20read b/imageroot/actions/get-configuration/20read index be6a87f..5b3bcfc 100755 --- a/imageroot/actions/get-configuration/20read +++ b/imageroot/actions/get-configuration/20read @@ -26,7 +26,7 @@ import configparser import json import sys import subprocess -import socket +import agent configuration = {} vhosts = [] @@ -61,7 +61,7 @@ fp.close() configuration['NextFpmPort'] = NextFpmPort # Find the hosname of the node -configuration["hostname"] = socket.gethostname() +configuration["hostname"] = agent.get_hostname() # Read current configuration configuration["sftp_tcp_port"] = int(os.environ.get("SFTP_TCP_PORT",3092))