Skip to content

Commit

Permalink
Merge branch 'clattems-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Boender committed Sep 13, 2017
2 parents fbc3f8b + 5397e98 commit 38e869a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ansiblecmdb/data/tpl/txt_table.tpl
Expand Up @@ -10,6 +10,7 @@ cols = [
{"title": "Name", "id": "name", "visible": True, "field": lambda h: h.get('name', '')},
{"title": "OS", "id": "os", "visible": True, "field": lambda h: h['ansible_facts'].get('ansible_distribution', '') + ' ' + h['ansible_facts'].get('ansible_distribution_version', '')},
{"title": "IP", "id": "ip", "visible": True, "field": lambda h: host['ansible_facts'].get('ansible_default_ipv4', {}).get('address', '')},
{"title": "Mac", "id": "mac", "visible": True, "field": lambda h: host['ansible_facts'].get('ansible_default_ipv4', {}).get('macaddress', '')},
{"title": "Arch", "id": "arch", "visible": True, "field": lambda h: host['ansible_facts'].get('ansible_architecture', 'Unk') + '/' + host['ansible_facts'].get('ansible_userspace_architecture', 'Unk')},
{"title": "Mem", "id": "mem", "visible": True, "field": lambda h: '%0.0fg' % (int(host['ansible_facts'].get('ansible_memtotal_mb', 0)) / 1000.0)},
{"title": "MemFree", "id": "memfree", "visible": True, "field": lambda h: '%0.0fg' % (int(host['ansible_facts'].get('ansible_memfree_mb', 0)) / 1000.0)},
Expand Down

0 comments on commit 38e869a

Please sign in to comment.