String secretValue = new String(Base64.encodeBase64(secret.getByteValue()));
pool.setAuthUsername(authUsername);
pool.setAuthSecret(secretValue);
}
}
<BUG>if (pool.getType() == StoragePoolType.RBD) {
pool.setCapacity(storage.getInfo().capacity);</BUG>
pool.setUsed(storage.getInfo().allocation);
<BUG>} else {
getStats(pool);
}</BUG>
return pool;

String secretValue = new String(Base64.encodeBase64(secret.getByteValue()));
pool.setAuthUsername(authUsername);
pool.setAuthSecret(secretValue);
}
}
pool.refresh();
pool.setCapacity(storage.getInfo().capacity);
pool.setUsed(storage.getInfo().allocation);
return pool;
