1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Check firmware secure keyword with safe way to prevent key not exist

This commit is contained in:
catborise 2019-12-19 16:06:06 +03:00
parent d401d2f3ff
commit c6cdb4929c
2 changed files with 2 additions and 1 deletions

View file

@ -209,7 +209,7 @@ class wvmCreate(wvmConnect):
xml += """<apic/>"""
if 'pae' in caps["features"]:
xml += """<pae/>"""
if 'yes' == firmware["secure"]:
if 'yes' == firmware.get("secure", 'no'):
xml += """<smm state="on"/>"""
xml += """</features>"""