From: Tony Mack Date: Mon, 31 Mar 2008 20:39:03 +0000 (+0000) Subject: update remote_command() to check if hostname from config file matchs the hostname... X-Git-Tag: tests-4.2-4~121 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1a6f5bea8dea936bdb65f79923e5ac226a2b7782;p=tests.git update remote_command() to check if hostname from config file matchs the hostname of the machine we are running on when constructing the remote command --- diff --git a/qaapi/qa/Remote.py b/qaapi/qa/Remote.py index 9f5379e..5fbdf4f 100644 --- a/qaapi/qa/Remote.py +++ b/qaapi/qa/Remote.py @@ -8,7 +8,7 @@ class Remote: command = " chroot %s %s" % (self['chroot'], command) if 'vserver' in self and self['vserver']: command = " vserver %s exec %s " % (self['vserver'], command) - if 'host' in self and self['host'] not in ['localhost']: + if 'host' in self and self['host'] not in ['localhost', self.confg.hostname]: options = "" if 'rootkey' in self and self['rootkey']: options = "-i %s " % self['rootkey']