From 00c7444d23b1b0ab9bebb4546ad48a56362fe6c7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 27 Jul 2023 14:14:40 +0200 Subject: [libvirt] Fix expression: Wrong variable used --- src/main/java/org/openslx/libvirt/xml/LibvirtXmlEditable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlEditable.java b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlEditable.java index c97af59..0143e46 100644 --- a/src/main/java/org/openslx/libvirt/xml/LibvirtXmlEditable.java +++ b/src/main/java/org/openslx/libvirt/xml/LibvirtXmlEditable.java @@ -133,7 +133,7 @@ public interface LibvirtXmlEditable public default boolean getXmlElementAttributeValueAsBool( String attributeName ) { final String attributeValue = this.getXmlElementAttributeValue( attributeName ); - return "yes".equals( attributeValue ) || "on".equals( attributeValue ) || "true".equals( attributeName ); + return "yes".equals( attributeValue ) || "on".equals( attributeValue ) || "true".equals( attributeValue ); } /** -- cgit v1.2.3-55-g7522