(self, command, stdin_disabled = True, allow_error=False)
return self.exec_cmd(cmdline, allow_error)
Pass a command to slave WalManager
Pass a command to slave WalManager
Pass a command to slave WalManager
def remote_walmgr(self, command, stdin_disabled = True, allow_error=False):
        """Pass a command to slave WalManager"""

        sshopt = "-T"
        if stdin_disabled:
            sshopt += "n"

        slave_config = self.cf.getfile("slave_config")
        if not slave_config:
            raise Exception("slave_config not specified in %s" % self.cfgfile)

        slave_host = self.cf.get("slave")
        cmdline = [ "ssh", sshopt, "-o", "Batchmode=yes", "-o", "StrictHostKeyChecking=no",
                    slave_host, self.script, slave_config, command ]

        if self.not_really:
            cmdline += ["--not-really"]

        return self.exec_cmd(cmdline, allow_error)
def remote_walmgr ( self , command , stdin_disabled = True , allow_error = False ) : sshopt = "-T" if stdin_disabled : sshopt += "n" slave_config = self . cf . getfile ( "slave_config" ) if not slave_config : raise Exception ( "slave_config not specified in %s" % self . cfgfile ) slave_host = self . cf . get ( "slave" ) cmdline = [ "ssh" , sshopt , "-o" , "Batchmode=yes" , "-o" , "StrictHostKeyChecking=no" , slave_host , self . script , slave_config , command ] if self . not_really : cmdline += [ "--not-really" ] return self . exec_cmd ( cmdline , allow_error )