def describe_cluster(module, redshift):
 identifier = module.params.get('identifier')
 try:
  resource = redshift.describe_clusters(identifier)['DescribeClustersResponse']['DescribeClustersResult']['Clusters'][0]
 except boto.exception.JSONResponseError as e:
  module.fail_json(msg=str(e))
 return (True, _collect_facts(resource))

def describe_cluster ( module , redshift ) : identifier = module . params . get ( 'identifier' ) try : resource = redshift . describe_clusters ( identifier ) [ 'DescribeClustersResponse' ] [ 'DescribeClustersResult' ] [ 'Clusters' ] [ 0 ] except boto . exception . JSONResponseError as e : module . fail_json ( msg = str ( e ) ) return ( True , _collect_facts ( resource ) )
collect data about the cluster .