mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
Check firmware secure keyword with safe way to prevent key not exist
This commit is contained in:
@@ -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>"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user