Skip to content

Commit

Permalink
Return number of cpu's for vcpu's on OpenBSD in sql template
Browse files Browse the repository at this point in the history
  • Loading branch information
fboender committed Oct 8, 2016
1 parent d764dae commit 3c4d703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblecmdb/data/tpl/sql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ from jsonxs import jsonxs
%></%def>
<%def name="col_vcpus(host)"><%
if jsonxs(host, 'ansible_facts.ansible_distribution', default='') in ["OpenBSD"]:
return 0
return jsonxs(host, 'ansible_facts.ansible_processor_count', default=0)
else:
return jsonxs(host, 'ansible_facts.ansible_processor_vcpus', default=jsonxs(host, 'ansible_facts.ansible_processor_cores', default=0))
endif
Expand Down

0 comments on commit 3c4d703

Please sign in to comment.