@utils.arg('hypervisor', metavar='<hypervisor>', help=_('Name or ID of the hypervisor to show the uptime of.'))
def do_hypervisor_uptime(cs, args):
 hyper = _find_hypervisor(cs, args.hypervisor)
 hyper = cs.hypervisors.uptime(hyper)
 utils.print_dict(hyper.to_dict())

@ utils . arg ( 'hypervisor' , metavar = '<hypervisor>' , help = _ ( 'Name or ID of the hypervisor to show the uptime of.' ) ) def do_hypervisor_uptime ( cs , args ) : hyper = _find_hypervisor ( cs , args . hypervisor ) hyper = cs . hypervisors . uptime ( hyper ) utils . print_dict ( hyper . to_dict ( ) )
display the uptime of the specified hypervisor .