init commit

This commit is contained in:
ahmadbilalkhalid 2020-03-03 23:46:39 +05:00
commit fea0568bb9
10 changed files with 318 additions and 6 deletions

View file

@ -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']