summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-05-26 10:38:07 +0200
committerManuel Bentele2021-05-26 10:38:07 +0200
commit9b9e92c28aacbd3368b023c79c5e031107873ee4 (patch)
treea786df1575050488ee5a77d28d183a4f71c01b04
parentAdd API method to obtain Libvirt test resource from test *.jar file (diff)
downloadmaster-sync-shared-9b9e92c28aacbd3368b023c79c5e031107873ee4.tar.gz
master-sync-shared-9b9e92c28aacbd3368b023c79c5e031107873ee4.tar.xz
master-sync-shared-9b9e92c28aacbd3368b023c79c5e031107873ee4.zip
Fix bug during creation of new Libvirt filesystem node
-rw-r--r--src/main/java/org/openslx/libvirt/domain/device/Device.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/Device.java b/src/main/java/org/openslx/libvirt/domain/device/Device.java
index 151592a..c252793 100644
--- a/src/main/java/org/openslx/libvirt/domain/device/Device.java
+++ b/src/main/java/org/openslx/libvirt/domain/device/Device.java
@@ -79,7 +79,7 @@ public class Device extends LibvirtXmlNode
createdDevice = Disk.createInstance( Disk.class.cast( device ), xmlNode );
} else if ( device instanceof FileSystem ) {
LibvirtXmlNode xmlNode = Device.createDeviceElement( xmlParentNode, Type.FILESYSTEM );
- createdDevice = FileSystem.createInstance( FileSystem.class.cast( device ), xmlNode );
+ createdDevice = FileSystem.createInstance( xmlNode );
} else if ( device instanceof Hostdev ) {
LibvirtXmlNode xmlNode = Device.createDeviceElement( xmlParentNode, Type.HOSTDEV );
createdDevice = Hostdev.createInstance( Hostdev.class.cast( device ), xmlNode );