def _is_cluster_volume(cluster_id, cinder_volume):
 actual_cluster_id = cinder_volume.metadata.get(CLUSTER_ID_LABEL)
 if (actual_cluster_id is not None):
  actual_cluster_id = UUID(actual_cluster_id)
  if (actual_cluster_id == cluster_id):
   return True
 return False

def _is_cluster_volume ( cluster_id , cinder_volume ) : actual_cluster_id = cinder_volume . metadata . get ( CLUSTER_ID_LABEL ) if ( actual_cluster_id is not None ) : actual_cluster_id = UUID ( actual_cluster_id ) if ( actual_cluster_id == cluster_id ) : return True return False
helper function to check if given volume belongs to given cluster .