bug 7311: Use StoragePoolVO copy constructor in deleteStoragePoolCommand

status 7311: resolved fixed
This commit is contained in:
alena 2010-11-23 17:54:42 -08:00
parent 8dfd7b176e
commit 674d68fc58

View File

@ -40,7 +40,7 @@ public class DeleteStoragePoolCommand extends Command {
}
public DeleteStoragePoolCommand(StoragePoolVO pool) {
this(pool, LOCAL_PATH_PREFIX + File.separator + UUID.nameUUIDFromBytes((pool.getHostAddress() + pool.getPath()).getBytes()));
this(new StoragePoolVO(pool), LOCAL_PATH_PREFIX + File.separator + UUID.nameUUIDFromBytes((pool.getHostAddress() + pool.getPath()).getBytes()));
}
public StoragePoolVO getPool() {