Skip to content

Commit 2d3cd75

Browse files
author
Dan
committed
Added deprecation warning to exec_command.
1 parent bd44846 commit 2d3cd75

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pssh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ def exec_command(self, *args, **kwargs):
476476
477477
You may call get_stdout on already completed greenlets to re-get
478478
their output as many times as you want."""
479+
warnings.warn("This method is being deprecated and will be removed in \
480+
future releases - use self.run_command instead", DeprecationWarning)
479481
return [self.pool.spawn(self._exec_command, host, *args, **kwargs)
480482
for host in self.hosts]
481483

tests/test_pssh_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import threading
3131
import paramiko
3232
import os
33+
import warnings
3334

3435
USER_KEY = paramiko.RSAKey.from_private_key_file(
3536
os.path.sep.join([os.path.dirname(__file__), 'test_client_private_key']))

0 commit comments

Comments
 (0)