Bugfix, meta_host_id is already the text name, no need to look it up.

Signed-off-by: Gregory Smith <[email protected]>

--- autotest/cli/contrib/why_isnt_my_job_running.py     2010-01-21 
11:33:11.000000000 -0800
+++ autotest/cli/contrib/why_isnt_my_job_running.py     2010-01-21 
11:33:11.000000000 -0800
@@ -83,13 +83,11 @@
     else:
         job_dependency_label_names = []
 
-    meta_host_id = queue_entries[0]['meta_host']
-    if meta_host_id:
-        meta_host = proxy.run('get_labels', id=meta_host)[0]
-        meta_host_name = meta_host['name']
+    meta_host_name = queue_entries[0]['meta_host']
+    if meta_host_name:
+        meta_host = proxy.run('get_labels', 
atomic_group__name=meta_host_name)[0]
     else:
         meta_host = None
-        meta_host_name = None
 
     # A mapping from label name -> a list of hostnames usable for this job.
     runnable_atomic_label_names = {}
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to