Fix authorize in net agnostic modules (#33549)

* This should fix authorize for net_* modules

* transport: none means network_cli in eos

For now anyway
This commit is contained in:
Nathaniel Case 2017-12-05 09:57:40 -05:00 committed by GitHub
parent 961c3fcca7
commit fdc547601c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -70,6 +70,7 @@ class ActionModule(ActionBase):
if 'authorize' in self.provider.keys():
play_context.become = self.provider['authorize'] or False
play_context.become_pass = self.provider['auth_pass']
play_context.become_method = 'enable'
if self._play_context.connection == 'local':
socket_path = self._start_connection(play_context)