Skip to content

Commit

Permalink
Fix a few errors (ansible#21854)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos authored and privateip committed Feb 26, 2017
1 parent a284c3f commit ca21d09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ansible/plugins/action/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def run(self, tmp=None, task_vars=None):
pc.connection = 'network_cli'
pc.network_os = 'eos'
pc.remote_user = provider['username'] or self._play_context.connection_user
pc.password = provider['password'] or self._play_context.password or 22
pc.privateip_key_file = provider['ssh_keyfile'] or self._play_context.private_key_file
pc.password = provider['password'] or self._play_context.password
pc.private_key_file = provider['ssh_keyfile'] or self._play_context.private_key_file
pc.timeout = provider['timeout'] or self._play_context.timeout
pc.become = provider['authorize'] or False
pc.become_pass = provider['auth_pass']
Expand Down Expand Up @@ -138,4 +138,3 @@ def _fallback(self, fallback):
return strategy(*args, **kwargs)
except AnsibleFallbackNotFound:
pass

0 comments on commit ca21d09

Please sign in to comment.