Skip to content

Commit

Permalink
Merge pull request #24 from NethServer/getFqdn
Browse files Browse the repository at this point in the history
retrieve the FQDN of the server by the agent library
  • Loading branch information
stephdl authored Aug 4, 2023
2 parents 9309cd1 + 1ac8a69 commit c312a2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import os
import sys
import json
import agent
import socket

# Prepare return variable
config = {}
Expand All @@ -42,7 +41,7 @@ config["http2https"] = rdb.hget(env, "TRAEFIK_HTTP2HTTPS") == "True";
# config["lets_encrypt"] = rdb.hget(env, "TRAEFIK_LETS_ENCRYPT") == "True";

# Find the hostname of the node
config["hostname"] = socket.gethostname()
config["hostname"] = agent.get_hostname()

# Dump the configuratio to stdou
json.dump(config, fp=sys.stdout)

0 comments on commit c312a2f

Please sign in to comment.