Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3109,7 +3109,7 @@ public void updateStoragePoolHostVOAndBytes(StoragePool pool, long hostId, Modif
}

StoragePoolVO poolVO = _storagePoolDao.findById(pool.getId());
if (!Storage.StoragePoolType.StorPool.equals(poolVO.getPoolType())) {
if (!Storage.StoragePoolType.StorPool.equals(poolVO.getPoolType()) && !poolVO.getStorageProviderName().equals(DataStoreProvider.ONTAP_PLUGIN_NAME) ) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommneded practice to keep the constant first then compare with variable example

DataStoreProvider.ONTAP_PLUGIN_NAME.equals(poolVO.getStorageProviderName())

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rajiv-jain-netapp Taken care.

poolVO.setUsedBytes(mspAnswer.getPoolInfo().getCapacityBytes() - mspAnswer.getPoolInfo().getAvailableBytes());
poolVO.setCapacityBytes(mspAnswer.getPoolInfo().getCapacityBytes());
}
Expand Down
Loading