summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2023-07-27 14:14:40 +0200
committerSimon Rettberg2023-07-27 14:14:40 +0200
commit00c7444d23b1b0ab9bebb4546ad48a56362fe6c7 (patch)
tree63f07753e2f573784da2ab2593349f811f6b8fea /src
parent[libvirt] Add methods for setting CPU migratable and pinning (diff)
downloadmaster-sync-shared-00c7444d23b1b0ab9bebb4546ad48a56362fe6c7.tar.gz
master-sync-shared-00c7444d23b1b0ab9bebb4546ad48a56362fe6c7.tar.xz
master-sync-shared-00c7444d23b1b0ab9bebb4546ad48a56362fe6c7.zip
[libvirt] Fix expression: Wrong variable used
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/libvirt/xml/LibvirtXmlEditable.java2
1 files changed, 1 insertions, 1 deletions
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 );
}
/**