forked from uncloud/uncloud
init commit
This commit is contained in:
parent
531bfa1768
commit
fea0568bb9
10 changed files with 318 additions and 6 deletions
|
|
@ -6,7 +6,6 @@ import uncloud.secrets as secrets
|
|||
from xmlrpc.client import ServerProxy as RPCClient
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.contrib.auth import get_user_model
|
||||
from xmltodict import parse
|
||||
|
||||
from opennebula.models import VM as VMModel
|
||||
|
|
@ -31,7 +30,7 @@ class Command(BaseCommand):
|
|||
|
||||
backend = LDAPBackend()
|
||||
|
||||
for vm in vms:
|
||||
for i, vm in enumerate(vms):
|
||||
vm_id = vm['ID']
|
||||
vm_owner = vm['UNAME']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue