domcapabilities: Remove redundant check
get_enum() will always succeed, so the first check is redundant Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
c3e9db5f3a
commit
1498085ff9
|
@ -260,8 +260,7 @@ class DomainCapabilities(XMLBuilder):
|
|||
"""
|
||||
Return True if libvirt advertises support for UEFI loader
|
||||
"""
|
||||
return ("readonly" in self.os.loader.enum_names() and
|
||||
"yes" in self.os.loader.get_enum("readonly").get_values())
|
||||
return "yes" in self.os.loader.get_enum("readonly").get_values()
|
||||
|
||||
def supports_firmware_efi(self):
|
||||
return "efi" in self.os.get_enum("firmware").get_values()
|
||||
|
|
Loading…
Reference in New Issue