Move host initialization line into try-except, so an error in that step will generate a FAIL status message.

Signed-off-by: Steve Howard <showard@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2718 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/control_segments/verify b/server/control_segments/verify
index 82afa33..1b0c891 100644
--- a/server/control_segments/verify
+++ b/server/control_segments/verify
@@ -1,7 +1,7 @@
 def verify(machine):
     print 'Initializing host ' + machine
-    host = hosts.create_host(machine, initialize=False, auto_monitor=False)
     try:
+        host = hosts.create_host(machine, initialize=False, auto_monitor=False)
         host.verify()
         job.record('GOOD', None, 'verify', '%s verified successfully' % machine)
     except Exception, e: