diff options
author | Ruan HE <ruan.he@orange.com> | 2017-11-10 09:45:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-10 09:45:05 +0000 |
commit | 7ce33e7a01ac4433fc91882fa1a224396664362d (patch) | |
tree | b6414354ff5880ec6a207b0695de83fba16047a7 | |
parent | afbc4aa793b9457651523373b91358679fc1858c (diff) | |
parent | 7b8902aa1ee5a2e02b3146b670eaa8f5790af970 (diff) |
Merge "Update server object for unit testing."
-rw-r--r-- | moonv4/moon_manager/moon_manager/server.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moonv4/moon_manager/moon_manager/server.py b/moonv4/moon_manager/moon_manager/server.py index c317e319..f777fac1 100644 --- a/moonv4/moon_manager/moon_manager/server.py +++ b/moonv4/moon_manager/moon_manager/server.py @@ -30,8 +30,9 @@ def main(): configuration.add_component(uuid="manager", name=hostname, port=port, bind=bind) LOG.info("Starting server with IP {} on port {} bind to {}".format(hostname, port, bind)) server = HTTPServer(host=bind, port=port) - server.run() + return server if __name__ == '__main__': - main() + server = main() + server.run() |