mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-28 09:46:40 +00:00
Current code uses an !A && !B condition incorrectly to test A:Up and B:status for a remote peer image. This should be !A || !B as we require both conditions to be in the specified state (Up: true, and status Unknown). This is corrected by this commit, and further fixes: - check and return ready only when a remote site is found in the status output - check if all peer sites are ready, if multiple are found and return ready appropriately Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>