mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 06:21:43 -07:00
fixes ios_facts that was returning no values (#21357)
* adds conversion to command dict into ios shared lib * fixes hardware commands in ios_facts * adds network_os value to play_context in ios action plugin fixes #21190
This commit is contained in:
parent
bf836850a4
commit
9937e604f5
3 changed files with 16 additions and 5 deletions
|
@ -41,7 +41,8 @@ class ActionModule(_ActionModule):
|
|||
|
||||
pc = copy.deepcopy(self._play_context)
|
||||
pc.connection = 'network_cli'
|
||||
pc.port = provider['port'] or self._play_context.port
|
||||
pc.network_os = 'ios'
|
||||
pc.port = provider['port'] or self._play_context.port or 22
|
||||
pc.remote_user = provider['username'] or self._play_context.connection_user
|
||||
pc.password = provider['password'] or self._play_context.password
|
||||
pc.become = provider['authorize'] or False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue