import os
-import copy
+import copy
+import qa.utils
from Remote import Remote
from Table import Table
standalone http server that listens on the specified port.
This is useful for running multiple api servers on the same machine.
"""
- if 'host' in self and not host in ['localhost', None]:
+ if 'host' in self and not 'host' in ['localhost', None]:
server_script = "/usr/share/plc_api/Server.py"
self.commands("%s -p %s" % (server_script, self['port']))
-
+ if self.config.verbose:
+ utils.header("Starting api server at %s on listening on port %s" % (self['host'], self['port']))
class PLCs(list, Table):