moved the logging statement

moved the logging statement before the actual action
pull/25211/head
Piotr Smolinski 9 years ago
parent d958440bcb
commit db08ff6dbd

@ -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()

Loading…
Cancel
Save