Skip to content

Commit c0bf00c

Browse files
committed
findbugs encoding
fake message part to remove stale PR folowing This closes #33
1 parent 12d5240 commit c0bf00c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/src/com/cloud/agent/resource/DummyResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import com.cloud.resource.ServerResource;
4242
import com.cloud.storage.Storage;
4343
import com.cloud.storage.Storage.StoragePoolType;
44+
import com.cloud.utils.StringUtils;
4445

4546
@Local(value = {ServerResource.class})
4647
public class DummyResource implements ServerResource {
@@ -135,7 +136,7 @@ protected StoragePoolInfo initializeLocalStorage() {
135136
String hostIp = getConfiguredProperty("private.ip.address", "127.0.0.1");
136137
String localStoragePath = getConfiguredProperty("local.storage.path", "/mnt");
137138
String lh = hostIp + localStoragePath;
138-
String uuid = UUID.nameUUIDFromBytes(lh.getBytes()).toString();
139+
String uuid = UUID.nameUUIDFromBytes(lh.getBytes(StringUtils.getPreferredCharset())).toString();
139140

140141
String capacity = getConfiguredProperty("local.storage.capacity", "1000000000");
141142
String available = getConfiguredProperty("local.storage.avail", "10000000");

0 commit comments

Comments
 (0)