moved the logging statement

moved the logging statement before the actual action
This commit is contained in:
Piotr Smolinski 2017-05-31 14:14:27 +02:00
parent d958440bcb
commit db08ff6dbd

View file

@ -894,9 +894,9 @@ class Connection(ConnectionBase):
cmd = map(to_bytes, self._build_command(self._play_context.ssh_executable, '-O', 'stop', self.host))
controlpersist, controlpath = self._persistence_controls(cmd)
if controlpersist:
display.vvv(u'sending stop: %s' % cmd)
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
display.vvv(u'sending stop: %s' % cmd)
self.close()