Merge pull request #111 from harmonherring/boot-order

Boot order handling
This commit is contained in:
Will Nilges 2021-11-11 19:25:21 -05:00 committed by GitHub
commit 8e5f173a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 178 additions and 27 deletions

View file

@ -92,7 +92,6 @@ def create_vm_task(user, name, cores, memory, disk, iso):
register_starrs(starrs, name, app.config['STARRS_USER'], vm.get_mac(), ip)
set_job_status(job, 'setting VM expiration')
get_vm_expire(db, vmid, app.config['VM_EXPIRE_MONTHS'])
vm.set_boot_order(['Hard Disk', 'CD-ROM', 'Network'])
logging.info('[{}] VM successfully provisioned.'.format(name))
set_job_status(job, 'complete')