Fix a few errors (#21854)

This commit is contained in:
Nathaniel Case 2017-02-25 21:12:49 -05:00 committed by Peter Sprygada
parent a284c3f7ea
commit ca21d09483

View file

@ -57,8 +57,8 @@ class ActionModule(_ActionModule):
pc.connection = 'network_cli' pc.connection = 'network_cli'
pc.network_os = 'eos' pc.network_os = 'eos'
pc.remote_user = provider['username'] or self._play_context.connection_user pc.remote_user = provider['username'] or self._play_context.connection_user
pc.password = provider['password'] or self._play_context.password or 22 pc.password = provider['password'] or self._play_context.password
pc.privateip_key_file = provider['ssh_keyfile'] or self._play_context.private_key_file pc.private_key_file = provider['ssh_keyfile'] or self._play_context.private_key_file
pc.timeout = provider['timeout'] or self._play_context.timeout pc.timeout = provider['timeout'] or self._play_context.timeout
pc.become = provider['authorize'] or False pc.become = provider['authorize'] or False
pc.become_pass = provider['auth_pass'] pc.become_pass = provider['auth_pass']
@ -138,4 +138,3 @@ class ActionModule(_ActionModule):
return strategy(*args, **kwargs) return strategy(*args, **kwargs)
except AnsibleFallbackNotFound: except AnsibleFallbackNotFound:
pass pass