@@ -10,9 +10,7 @@ def display_hosts(self, hosts):
1010 "IP" ,
1111 "Hostname" ,
1212 "Domain" ,
13- "OS" ,
14- "Signing" ,
15- "Channel Binding"
13+ "OS"
1614 ]
1715 ]
1816
@@ -27,18 +25,14 @@ def display_hosts(self, hosts):
2725 except Exception :
2826 os = host [4 ]
2927
30- signing = "Enforced" if bool (host [5 ]) else "None"
31- cbt_status = host [6 ]
32-
3328 data .append (
3429 [
3530 host_id ,
3631 ip ,
3732 hostname ,
3833 domain ,
39- os ,
40- signing ,
41- cbt_status ]
34+ os
35+ ]
4236 )
4337 print_table (data , title = "Hosts" )
4438
@@ -60,9 +54,7 @@ def do_hosts(self, line):
6054 "IP" ,
6155 "Hostname" ,
6256 "Domain" ,
63- "OS" ,
64- "Signing" ,
65- "Channel Binding"
57+ "OS"
6658 ]
6759 ]
6860 host_id_list = []
@@ -79,18 +71,13 @@ def do_hosts(self, line):
7971 except Exception :
8072 os = host [4 ]
8173
82- signing = "Enforced" if bool (host [5 ]) else "None"
83- cbt_status = host [6 ]
84-
8574 data .append (
8675 [
8776 host_id ,
8877 ip ,
8978 hostname ,
9079 domain ,
91- os ,
92- signing ,
93- cbt_status
80+ os
9481 ]
9582 )
9683 print_table (data , title = "Host" )
@@ -100,7 +87,7 @@ def help_hosts(self):
10087 hosts [filter_term]
10188 By default prints all hosts
10289 Table format:
103- | 'HostID', 'IP', 'Hostname', 'Domain', 'OS', 'Signing, 'Channel Binding' |
90+ | 'HostID', 'IP', 'Hostname', 'Domain', 'OS' |
10491 Subcommands:
10592 filter_term - filters hosts with filter_term
10693 If a single host is returned (e.g. `hosts 15`, it prints the following tables:
@@ -201,4 +188,4 @@ def help_clear_database(self):
201188 THIS COMPLETELY DESTROYS ALL DATA IN THE CURRENTLY CONNECTED DATABASE
202189 YOU CANNOT UNDO THIS COMMAND
203190 """
204- print_help (help_string )
191+ print_help (help_string )
0 commit comments