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 41
41
import com .cloud .resource .ServerResource ;
42
42
import com .cloud .storage .Storage ;
43
43
import com .cloud .storage .Storage .StoragePoolType ;
44
+ import com .cloud .utils .StringUtils ;
44
45
45
46
@ Local (value = {ServerResource .class })
46
47
public class DummyResource implements ServerResource {
@@ -135,7 +136,7 @@ protected StoragePoolInfo initializeLocalStorage() {
135
136
String hostIp = getConfiguredProperty ("private.ip.address" , "127.0.0.1" );
136
137
String localStoragePath = getConfiguredProperty ("local.storage.path" , "/mnt" );
137
138
String lh = hostIp + localStoragePath ;
138
- String uuid = UUID .nameUUIDFromBytes (lh .getBytes ()).toString ();
139
+ String uuid = UUID .nameUUIDFromBytes (lh .getBytes (StringUtils . getPreferredCharset () )).toString ();
139
140
140
141
String capacity = getConfiguredProperty ("local.storage.capacity" , "1000000000" );
141
142
String available = getConfiguredProperty ("local.storage.avail" , "10000000" );
You can’t perform that action at this time.
0 commit comments