From 16c32382bc744ba4a1d49673887f85b3f49f46af Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 18 Mar 2008 23:17:12 +0000 Subject: [PATCH] -fix errors. - added verbose output --- qaapi/qa/PLCs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qaapi/qa/PLCs.py b/qaapi/qa/PLCs.py index ff0d506..dacee1b 100644 --- a/qaapi/qa/PLCs.py +++ b/qaapi/qa/PLCs.py @@ -1,5 +1,6 @@ import os -import copy +import copy +import qa.utils from Remote import Remote from Table import Table @@ -33,10 +34,11 @@ class PLC(dict, Remote): 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): -- 2.47.0