Now that the Autotest frontend supports reservations via dynamic ACLs,
it would be quite nice to have a host's ACL displayed on various tables.
This allows one to quickly see who is currently using a system (handy
for managing a grid of machines).

Signed-off-by: Nishanth Aravamudan <[email protected]>

diff --git a/cli/host.py b/cli/host.py
index 24be9af..da9e821 100644
--- a/cli/host.py
+++ b/cli/host.py
@@ -193,7 +193,7 @@ class host_list(action_common.atest_list, host):
             self.print_list(results, key='hostname')
         else:
             super(host_list, self).output(results, keys=['hostname', 'status',
-                                                         'locked', 'platform', 
+                                                         'locked', 'locked_by',
 
 
 class host_stat(host):
diff --git a/cli/topic_common.py b/cli/topic_common.py
index 1128113..9a425d4 100644
--- a/cli/topic_common.py
+++ b/cli/topic_common.py
@@ -72,6 +72,7 @@ KEYS_TO_NAMES_EN = {'hostname': 'Host',
                     'status': 'Status',
                     'locked': 'Locked',
                     'locked_by': 'Locked by',
+                    'acls': 'ACL',
                     'lock_time': 'Locked time',
                     'labels': 'Labels',
                     'description': 'Description',
diff --git a/frontend/client/src/autotest/afe/HostTable.java b/frontend/client/s
index a55652e..a86598d 100644
--- a/frontend/client/src/autotest/afe/HostTable.java
+++ b/frontend/client/src/autotest/afe/HostTable.java
@@ -16,6 +16,7 @@ public class HostTable extends DynamicTable {
         {HostDataSource.OTHER_LABELS, "Other labels"}, 
         {"status", "Status"}, 
         {"locked", "Locked"},
+        {HostDataSource.HOST_ACLS, "ACLs"},
     };
     
     public HostTable(DataSource dataSource) {

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to