Add check for hypervisor state before getting uptime

show_hypervisor_uptime will take several minutes to
return fail info if hypervisor is not good, so this is to add
check for hypervisor state up before show_hypervisor_uptime
to save running time in the situation where there is abnormal
hypervisor in the system.

Change-Id: I93753a73ac84243d6837b3364d1f252018e03431
1 file changed