Skip to content

Commit

Permalink
Merge pull request #40 from NethServer/get_hostname
Browse files Browse the repository at this point in the history
use the new function  agent.get_hostname()
  • Loading branch information
stephdl authored Aug 4, 2023
2 parents 4512cfd + b769eef commit 4acd634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import configparser
import json
import sys
import subprocess
import socket
import agent

configuration = {}
vhosts = []
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 4acd634

Please sign in to comment.