X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=blobdiff_plain;f=tools%2Fclustering%2Fcluster-deployer%2Fremote_host.py;fp=tools%2Fclustering%2Fcluster-deployer%2Fremote_host.py;h=c85df36f866a999ecc2b96798804999baad84072;hp=cb5d1818dcc2dc8fd0e252d7158e3447270e31e5;hb=b2cd74063cbcdfadcbe20746116ec276e27ea0cb;hpb=e405dbebf449bda49e3c9f071043e28f57c64438 diff --git a/tools/clustering/cluster-deployer/remote_host.py b/tools/clustering/cluster-deployer/remote_host.py index cb5d1818dc..c85df36f86 100644 --- a/tools/clustering/cluster-deployer/remote_host.py +++ b/tools/clustering/cluster-deployer/remote_host.py @@ -23,7 +23,7 @@ class RemoteHost: self.lib.close_connection() def exec_cmd(self, command): - print "Executing command " + command + " on host " + self.host + print("Executing command %s on host %s" % (command, self.host)) rc = self.lib.execute_command(command, return_rc=True) if rc[1] != 0: raise Exception('remote command failed [{0}] with exit code {1}.' @@ -35,14 +35,14 @@ class RemoteHost: def copy_file(self, src, dest): if src is None: - print "src is None not copy anything to " + dest + print("src is None not copy anything to ", dest) return if os.path.exists(src) is False: - print "Src file " + src + " was not found" + print("Src file " + src + " was not found") return - print "Copying " + src + " to " + dest + " on " + self.host + print("Copying %s to %s on %s" % (src, dest, self.host)) self.lib.put_file(src, dest) def kill_controller(self):