diff --git a/bin/uplink b/bin/uplink index 38cb8f0..f327cb4 100755 --- a/bin/uplink +++ b/bin/uplink @@ -108,6 +108,8 @@ def main(): logger.error(str('[uplink] configuration error: {0}'.format(err))) sys.exit(1) + # To be more cross-platform compatible maybe changes are needed: + # https://stackoverflow.com/questions/4271740/how-can-i-use-python-to-get-the-system-hostname configuration.set_env_var('_hostname', socket.gethostname()) configuration.set_env_var('__version__', __version__) diff --git a/uplink/httpserver.py b/uplink/httpserver.py index 07e6e10..61fc236 100644 --- a/uplink/httpserver.py +++ b/uplink/httpserver.py @@ -39,7 +39,7 @@ class HTTPServer: return 'Hello world!' @cherrypy.expose - def config(self): + def configuration(self): return '