File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
agent/src/com/cloud/agent/resource Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4141import com .cloud .resource .ServerResource ;
4242import com .cloud .storage .Storage ;
4343import com .cloud .storage .Storage .StoragePoolType ;
44+ import com .cloud .utils .StringUtils ;
4445
4546@ Local (value = {ServerResource .class })
4647public 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" );
You can’t perform that action at this time.
0 commit comments