(self, session, cluster_template_uuid)
return query.count() != 0
Checks whether the ClusterTemplate is referenced by cluster(s).
Checks whether the ClusterTemplate is referenced by cluster(s).
Checks whether the ClusterTemplate is referenced by cluster ( s ) .
def _is_cluster_template_referenced(self, session, cluster_template_uuid):
        """Checks whether the ClusterTemplate is referenced by cluster(s)."""
        query = model_query(models.Cluster, session=session)
        query = self._add_clusters_filters(query, {'cluster_template_id':
                                                   cluster_template_uuid})
        return query.count() != 0
def _is_cluster_template_referenced ( self , session , cluster_template_uuid ) : query = model_query ( models . Cluster , session = session ) query = self . _add_clusters_filters ( query , { 'cluster_template_id' : cluster_template_uuid } ) return query . count ( ) != 0