diff options
author | Thomas Duval <thomas.duval@orange.com> | 2017-11-09 16:24:06 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2017-11-09 16:24:06 +0100 |
commit | 7b8902aa1ee5a2e02b3146b670eaa8f5790af970 (patch) | |
tree | cf3efa09f80455b083b44e93aefdcc97f5bd6c94 /moonv4 | |
parent | 16f0175839e4bf5023d34d272182666f86f255cf (diff) |
Update server object for unit testing.
Change-Id: I41f697966e0b7e73db6a4cfd6e5c5461854097fc
Diffstat (limited to 'moonv4')
-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() |