You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to run ansible-cmdb.
The collecting of the facts is successful with command: $ ansible -i hosts -m setup --tree out/ all
and there are created json files.
When I run ansible-cmdb, here is the error:
$ ansible-cmdb --debug out/ > out/overview.html
Reading host vars from host_vars/automatisierung-db
Traceback (most recent call last):
File "/usr/local/bin/../lib/ansiblecmdb/ansible-cmdb.py", line 205, in <module>
limit=options.limit, debug=options.debug)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 61, in __init__
self._parse_hostvar_dir(inventory_path)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 182, in _parse_hostvar_dir
self._parse_hostvar_file(hostname, full_path)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 222, in _parse_hostvar_file
self.update_host(hostname, {'hostvars': invars}, overwrite=True)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 338, in update_host
util.deepupdate(host_info, key_values, overwrite=overwrite)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/util.py", line 37, in deepupdate
deepupdate(target[k], v, overwrite=overwrite)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/util.py", line 32, in deepupdate
target[k].extend(v)
Without debug, this is the output:
$ ansible-cmdb out/ > out/overview.html
Traceback (most recent call last):
File "/usr/local/bin/../lib/ansiblecmdb/ansible-cmdb.py", line 205, in <module>
limit=options.limit, debug=options.debug)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 61, in __init__
self._parse_hostvar_dir(inventory_path)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 182, in _parse_hostvar_dir
self._parse_hostvar_file(hostname, full_path)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 222, in _parse_hostvar_file
self.update_host(hostname, {'hostvars': invars}, overwrite=True)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/ansible.py", line 338, in update_host
util.deepupdate(host_info, key_values, overwrite=overwrite)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/util.py", line 37, in deepupdate
deepupdate(target[k], v, overwrite=overwrite)
File "/usr/local/lib/python2.7/dist-packages/ansiblecmdb/util.py", line 32, in deepupdate
target[k].extend(v)
AttributeError: 'unicode' object has no attribute 'extend'
Python version is 2.7.15+
Ubuntu 18.04.3 LTS
I tried to remove some potential unicode charachters like: Debian\x209.8.0\x20amd64\x20n , it didn't help.
Thanks in a advance.
Here is json example output:
Hello,
I'm trying to run ansible-cmdb.
The collecting of the facts is successful with command:
$ ansible -i hosts -m setup --tree out/ all
and there are created json files.
When I run ansible-cmdb, here is the error:
Without debug, this is the output:
I tried to remove some potential unicode charachters like:
Debian\x209.8.0\x20amd64\x20n , it didn't help.
Thanks in a advance.
Here is json example output:
ade-dc-01.txt
The text was updated successfully, but these errors were encountered: