Eliminate an necessary database call in Module Inventory, Port SSID, and NetBIOS reports

This commit is contained in:
Eric A. Miller
2014-02-16 23:27:26 -05:00
parent 66c0a9d4fa
commit d1aa325bc7
9 changed files with 20 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
[% USE CSV -%]
[% USE date(format = '%Y-%m-%d %H:%M') %]
[% IF results.first.ip %]
[% row = results.reset %]
[% IF opt %]
[% CSV.dump(['Domain' 'Node' 'Name' 'User' 'First Seen' 'Last Seen']) %]
[% WHILE (row = results.next) %]
@@ -14,7 +13,6 @@
[% END %]
[% ELSE %]
[% row = results.reset %]
[% CSV.dump(['Domain' 'Count']) %]
[% WHILE (row = results.next) %]