Make ssh debug easier to read and paste

Currently, ansible -vvvv show the following:

    hostname EXEC ['ssh', '-C', '-vvv', '-o', 'ControlMaster=auto',

This is not good if someone want to cut and paste it to see if something
is wrong with the command line, so join the dictionnary strings with spaces
to have 1 string in the output.
pull/8882/head
Michael Scherer 10 years ago
parent 5a7cbdda7e
commit 53830123fd

@ -286,7 +286,7 @@ class Connection(object):
sudocmd, prompt, success_key = utils.make_sudo_cmd(sudo_user, executable, cmd) sudocmd, prompt, success_key = utils.make_sudo_cmd(sudo_user, executable, cmd)
ssh_cmd.append(sudocmd) ssh_cmd.append(sudocmd)
vvv("EXEC %s" % ssh_cmd, host=self.host) vvv("EXEC %s" % ' '.join(ssh_cmd), host=self.host)
not_in_host_file = self.not_in_host_file(self.host) not_in_host_file = self.not_in_host_file(self.host)

Loading…
Cancel
Save