if (pool.getType() != StoragePoolType.RBD) {
pool.setLocalPath(spd.getTargetPath());
} else {
pool.setLocalPath("");
}
<BUG>if (pool.getType() == StoragePoolType.RBD) {</BUG>
pool.setCapacity(sp.getInfo().capacity);
pool.setUsed(sp.getInfo().allocation);
<BUG>} else {
getStats(pool);
}</BUG>
return pool;

if (pool.getType() != StoragePoolType.RBD) {
pool.setLocalPath(spd.getTargetPath());
} else {
pool.setLocalPath("");
}
pool.setCapacity(sp.getInfo().capacity);
pool.setUsed(sp.getInfo().allocation);
return pool;
