Skip to content

Commit

Permalink
call base _connect() from winrm._connect()
Browse files Browse the repository at this point in the history
without it, we don't get the base's free become method error check
  • Loading branch information
nitzmahone committed Jun 10, 2016
1 parent a1a4a0f commit 445a88d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/plugins/connection/winrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def _winrm_exec(self, command, args=(), from_exec=False, stdin_iterator=None):
self.protocol.cleanup_command(self.shell_id, command_id)

def _connect(self):
super(Connection, self)._connect()
if not self.protocol:
self.protocol = self._winrm_connect()
self._connected = True
Expand Down

0 comments on commit 445a88d

Please sign in to comment.