remove the stdin return value from connection plugin exec_command() methods

The value was useless -- unused by the callers and always hardcoded to
the empty string.
This commit is contained in:
Toshio Kuratomi 2015-09-24 08:56:20 -07:00
parent 9d47eabfa4
commit 03127dcfae
14 changed files with 18 additions and 14 deletions

View file

@ -32,7 +32,7 @@ class TestActionBase(unittest.TestCase):
def test_sudo_only_if_user_differs(self):
play_context = PlayContext()
action_base = ActionBase(None, None, play_context, None, None, None)
action_base._connection = Mock(exec_command=Mock(return_value=(0, '', '', '')))
action_base._connection = Mock(exec_command=Mock(return_value=(0, '', '')))
play_context.become = True
play_context.become_user = play_context.remote_user = 'root'