diff options
author | Ruan HE <ruan.he@orange.com> | 2018-01-30 13:41:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-30 13:41:04 +0000 |
commit | 9da7ac6718d66b73ba7fc8fc70e656a70e4db766 (patch) | |
tree | 672d21b1c8a8fd7ac67a3d2f2b2e265b22493fd2 /moon_interface/moon_interface/server.py | |
parent | 0da820e8d8ff75ff9e12b80501cc38aa1f3507a8 (diff) | |
parent | 57a6fa48a7c5c581db50f9590b9ad6c4be43ac2d (diff) |
Merge "adding some comments to enahnce"
Diffstat (limited to 'moon_interface/moon_interface/server.py')
-rw-r--r-- | moon_interface/moon_interface/server.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/moon_interface/moon_interface/server.py b/moon_interface/moon_interface/server.py index d38dae28..29403a6b 100644 --- a/moon_interface/moon_interface/server.py +++ b/moon_interface/moon_interface/server.py @@ -16,9 +16,7 @@ def create_server(): conf = configuration.get_configuration("components/pipeline").get( "components/pipeline", {}).get("interface", {}) - ''' - [Note] i think pipeline should be changed to interface - ''' + hostname = conf.get("hostname", "pipeline") port = conf.get("port", 80) bind = conf.get("bind", "127.0.0.1") @@ -26,9 +24,7 @@ def create_server(): hostname = "interface" bind = "127.0.0.1" port = 80 - ''' - [Note] i think pipeline should be changed to interface - ''' + configuration.add_component(uuid="pipeline", name=hostname, port=port, |