X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/eaef8a05c238a91a97f1c0b1aa6628c0d949df85..c8fcde472922e4ee664d904e0bf1a583f1d5040d:/qa/qa_utils.py diff --git a/qa/qa_utils.py b/qa/qa_utils.py index 8ca367e..fbc92e8 100644 --- a/qa/qa_utils.py +++ b/qa/qa_utils.py @@ -101,7 +101,7 @@ def GetSSHCommand(node, cmd, strict=True): - strict: Whether to enable strict host key checking """ - args = [ 'ssh', '-oEscapeChar=none', '-oBatchMode=yes', '-l', 'root' ] + args = [ 'ssh', '-oEscapeChar=none', '-oBatchMode=yes', '-l', 'root', '-t' ] if strict: tmp = 'yes' @@ -111,13 +111,7 @@ def GetSSHCommand(node, cmd, strict=True): args.append('-oClearAllForwardings=yes') args.append('-oForwardAgent=yes') args.append(node) - - if qa_config.options.dry_run: - prefix = 'exit 0; ' - else: - prefix = '' - - args.append(prefix + cmd) + args.append(cmd) print 'SSH:', utils.ShellQuoteArgs(args)