From 1a6f5bea8dea936bdb65f79923e5ac226a2b7782 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 31 Mar 2008 20:39:03 +0000 Subject: [PATCH] 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 --- qaapi/qa/Remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- 2.43.0