Skip to content

Commit

Permalink
sql template: replace reserved keyword 'system' with 'system_type'.
Browse files Browse the repository at this point in the history
  • Loading branch information
fboender committed Sep 30, 2020
1 parent ebd960a commit 43efad1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ansiblecmdb/data/tpl/sql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ from jsonxs import jsonxs
return jsonxs(host, 'ansible_facts.ansible_distribution_version', default='')
endif
%></%def>
<%def name="col_system(host)"><%
<%def name="col_system_type(host)"><%
return jsonxs(host, 'ansible_facts.ansible_system', default='')
%></%def>
<%def name="col_kernel(host)"><%
Expand Down Expand Up @@ -87,7 +87,7 @@ CREATE TABLE hosts (
main_ip VARCHAR(15),
os_name VARCHAR(80),
os_version VARCHAR(40),
system VARCHAR(40),
system_type VARCHAR(40),
kernel VARCHAR(40),
arch_hardware VARCHAR(12),
arch_userspace VARCHAR(12),
Expand All @@ -107,7 +107,7 @@ CREATE TABLE hosts (
main_ip,
os_name,
os_version,
system,
system_type,
kernel,
arch_hardware,
arch_userspace,
Expand All @@ -124,7 +124,7 @@ CREATE TABLE hosts (
"${col_main_ip(host)}",
"${col_os_name(host)}",
"${col_os_version(host)}",
"${col_system(host)}",
"${col_system_type(host)}",
"${col_kernel(host)}",
"${col_arch_hardware(host)}",
"${col_arch_userspace(host)}",
Expand Down

0 comments on commit 43efad1

Please sign in to comment.