Cleanup logging

This commit is contained in:
PCoder 2020-12-07 10:52:06 +05:30
parent 9d85c058da
commit 7bcca15f0b

View file

@ -57,10 +57,11 @@ class Command(BaseCommand):
} }
cu = CustomUser.objects.get(username=user.get('username')) cu = CustomUser.objects.get(username=user.get('username'))
# Create OpenNebulaManager # Create OpenNebulaManager
self.stdout.write(
self.style.SUCCESS( self.style.SUCCESS(
'Connecting using %s %s' % (cu.username, cu.password) 'Connecting using %s' % (cu.username)
)
) )
print('Connecting using %s %s' % (cu.username, cu.password))
manager = OpenNebulaManager(email=cu.username, password=cu.password) manager = OpenNebulaManager(email=cu.username, password=cu.password)
handle_metadata_and_emails(order_id, vm_id, manager, user, specs, handle_metadata_and_emails(order_id, vm_id, manager, user, specs,
template) template)