mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Fix issues with ironware modules (#33068)
- authorize was not working as expected - use end command to get to exec context instead of exit - error due to mishandling of global variable _DEVICE_CONFIG
This commit is contained in:
parent
d372cea2f8
commit
47eaf662a7
3 changed files with 6 additions and 3 deletions
|
@ -96,6 +96,7 @@ def run_commands(module, commands, check_rc=True):
|
|||
|
||||
|
||||
def get_config(module, source='running', flags=None):
|
||||
global _DEVICE_CONFIG
|
||||
if source is 'running' and flags is None and _DEVICE_CONFIG is not None:
|
||||
return _DEVICE_CONFIG
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue