We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While using the dellemc.os.os6_config module I am getting a fatal error with the follow STDERR:
os6_config
ansible [core 2.13.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible ansible collection location = /ansible/collections executable location = /usr/local/bin/ansible python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] jinja version = 3.1.2 libyaml = True
Collection Version
dellemc.os6 1.0.7
COLLECTIONS_PATHS(/etc/ansible/ansible.cfg) = ['/ansible/collections'] HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False INVENTORY_ENABLED(/etc/ansible/ansible.cfg) = ['spirent_it.Network.netbox']
Dell N2048 running firmware 6.5.1.6
Running module dellemc.os6.os6_config with following with update_type set to "check". The _config_lines can be any configuration.
Return changes in _results
fatal: [netcalswtac02]: FAILED! => { "changed": false, "module_stderr": "local variable 'result_banners' referenced before assignment", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error" }
The text was updated successfully, but these errors were encountered:
I was able to fix the issue by defining results_banners at the beginning of the code block, if configobjs or banners: result_banners = []
Sorry, something went wrong.
No branches or pull requests
SUMMARY
While using the dellemc.os.os6_config module I am getting a fatal error with the follow STDERR:
ISSUE TYPE
COMPONENT NAME
os6_config
ANSIBLE VERSION
ansible [core 2.13.6]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
ansible collection location = /ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
jinja version = 3.1.2
libyaml = True
COLLECTION VERSION
/usr/local/lib/python3.8/dist-packages/ansible_collections
Collection Version
dellemc.os6 1.0.7
CONFIGURATION
COLLECTIONS_PATHS(/etc/ansible/ansible.cfg) = ['/ansible/collections']
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
INVENTORY_ENABLED(/etc/ansible/ansible.cfg) = ['spirent_it.Network.netbox']
OS / ENVIRONMENT
Dell N2048 running firmware 6.5.1.6
STEPS TO REPRODUCE
Running module dellemc.os6.os6_config with following with update_type set to "check". The _config_lines can be any configuration.
vars:
_config_lines: "{{lookup('template', 'templates/' + prefix + '' + _module.name + '.j2')}}"
dellemc.os6.os6_config:
lines: "{{ _config_lines }}"
config: "{{ ansible_net_config }}"
update: "{{ update_type }}"
register: _results
EXPECTED RESULTS
Return changes in _results
ACTUAL RESULTS
fatal: [netcalswtac02]: FAILED! => {
"changed": false,
"module_stderr": "local variable 'result_banners' referenced before assignment",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"
}
The text was updated successfully, but these errors were encountered: