aboutsummaryrefslogtreecommitdiffstats
path: root/moon_interface
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2018-01-04 14:41:56 +0100
committerThomas Duval <thomas.duval@orange.com>2018-01-04 14:41:56 +0100
commit295ba85cba341338a2e74fef729dc74d091ac778 (patch)
treec131d0168a9f2ee10792d9257102dc9266175ed1 /moon_interface
parentbb86c23b2b634b855d743e2b005b50391051372b (diff)
update interface pod name to pipeline
Change-Id: I6a5a9ce3a27ea3ea40735dffa5f6a713f571cdc8
Diffstat (limited to 'moon_interface')
-rw-r--r--moon_interface/moon_interface/server.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/moon_interface/moon_interface/server.py b/moon_interface/moon_interface/server.py
index 13955c3e..0af1fd06 100644
--- a/moon_interface/moon_interface/server.py
+++ b/moon_interface/moon_interface/server.py
@@ -13,15 +13,16 @@ logger = logging.getLogger("moon.interface.server")
def create_server():
configuration.init_logging()
try:
- conf = configuration.get_configuration("components/interface")
- hostname = conf["components/interface"].get("hostname", "interface")
- port = conf["components/interface"].get("port", 80)
- bind = conf["components/interface"].get("bind", "127.0.0.1")
+ conf = configuration.get_configuration("components/pipeline").get(
+ "components/pipeline", {}).get("interface", {})
+ hostname = conf.get("hostname", "pipeline")
+ port = conf.get("port", 80)
+ bind = conf.get("bind", "127.0.0.1")
except exceptions.ConsulComponentNotFound:
hostname = "interface"
bind = "127.0.0.1"
port = 80
- configuration.add_component(uuid="interface",
+ configuration.add_component(uuid="pipeline",
name=hostname,
port=port,
bind=bind)