Exemplo n.º 1
0
    def get_hypervisor(self):
        from clusto.drivers import VMManager

        host = VMManager.resources(self)
        if not host:
            raise DriverException("Cannot start a VM without first allocating a hypervisor")
        return host[0].value
Exemplo n.º 2
0
 def get_hypervisor(self):
     from clusto.drivers import VMManager
     host = VMManager.resources(self)
     if not host:
         raise DriverException(
             'Cannot start a VM without first allocating a hypervisor')
     return host[0].value