diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/openslx/util/vm/VmwareConfig.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/util/vm/VmwareConfig.java b/src/main/java/org/openslx/util/vm/VmwareConfig.java index 20ab3ab..62a014d 100644 --- a/src/main/java/org/openslx/util/vm/VmwareConfig.java +++ b/src/main/java/org/openslx/util/vm/VmwareConfig.java @@ -83,8 +83,11 @@ public class VmwareConfig while ( ( line = reader.readLine() ) != null ) { KeyValuePair entry = parse( line ); - if ( entry != null ) { - if ( entry.key.equals( "virtualHW.version" ) || entry.key.equals( "ddb.virtualHWVersion" ) ) { + if ( entry != null ) { + if ( entry.key.equals( "virtualHW.version" ) || entry.key.equals( "ddb.virtualHWVersion" ) + // TODO: This is supposed to be case insensitive. + // Check if there are other consequences from lowercase entries in converted vmx files. + || entry.key.equals( "virtualhw.version" )) { isValid = true; } set( entry.key, unescape( entry.value ) ); |