Use username instead of email when creating VM

This commit is contained in:
PCoder 2020-03-05 15:55:44 +05:30
commit b44a7f98b5
3 changed files with 3 additions and 1 deletions

View file

@ -62,7 +62,7 @@ def create_vm_task(self, vm_template_id, user, specs, template, order_id):
)
if 'pass' in user:
on_user = user.get('email')
on_user = user.get('username')
on_pass = user.get('pass')
logger.debug("Using user {user} to create VM".format(user=on_user))
vm_name = None