forked from uncloud/uncloud
small cleaning
This commit is contained in:
parent
a662b1fe29
commit
02b287eff8
2 changed files with 5 additions and 6 deletions
|
|
@ -5,13 +5,12 @@ import uncloud.secrets as secrets
|
|||
|
||||
from xmlrpc.client import ServerProxy as RPCClient
|
||||
|
||||
from django_auth_ldap.backend import LDAPBackend
|
||||
from django.core.management.base import BaseCommand
|
||||
from xmltodict import parse
|
||||
|
||||
from opennebula.models import VM as VMModel
|
||||
|
||||
from django_auth_ldap.backend import LDAPBackend
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Syncronize VM information from OpenNebula'
|
||||
|
|
@ -30,7 +29,7 @@ class Command(BaseCommand):
|
|||
|
||||
backend = LDAPBackend()
|
||||
|
||||
for i, vm in enumerate(vms):
|
||||
for vm in vms:
|
||||
vm_id = vm['ID']
|
||||
vm_owner = vm['UNAME']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue