(self, context, cluster)
return {
            ng.name: ng.status_reason for ng in cluster.nodegroups
            if ng.status.endswith('FAILED')
        }
Collect fault info from heat resources of given cluster

        and store them into cluster.faults.
Collect fault info from heat resources of given cluster
Collect fault info from heat resources of given cluster
def _collect_fault_info(self, context, cluster):
        """Collect fault info from heat resources of given cluster

        and store them into cluster.faults.
        """
        # Gather fault info from the cluster nodegroups.
        return {
            ng.name: ng.status_reason for ng in cluster.nodegroups
            if ng.status.endswith('FAILED')
        }
def _collect_fault_info ( self , context , cluster ) : # Gather fault info from the cluster nodegroups. return { ng . name : ng . status_reason for ng in cluster . nodegroups if ng . status . endswith ( 'FAILED' ) }