Change to new OpenNebula functions

This commit is contained in:
Modulos 2017-05-09 05:05:58 +02:00
parent d0fc0144e5
commit 63052df6c9

View file

@ -339,7 +339,7 @@ class HostingBill(AssignPermissionsMixin, models.Model):
def get_vms(self): def get_vms(self):
email = self.customer.user.email email = self.customer.user.email
# Get opennebula client # Get opennebula client
opennebula_client = OpenNebulaManager() opennebula_client = OpenNebulaManager(create_user=False)
# Get vm pool # Get vm pool
vm_pool = opennebula_client.get_vms(email) vm_pool = opennebula_client.get_vms(email)