def pipeline_id_from_name(name, region=None, key=None, keyid=None, profile=None):
 r = {}
 result_pipelines = list_pipelines()
 if ('error' in result_pipelines):
  return result_pipelines
 for pipeline in result_pipelines['result']:
  if (pipeline['name'] == name):
   r['result'] = pipeline['id']
   return r
 r['error'] = 'No pipeline found with name={0}'.format(name)
 return r

def pipeline_id_from_name ( name , region = None , key = None , keyid = None , profile = None ) : r = { } result_pipelines = list_pipelines ( ) if ( 'error' in result_pipelines ) : return result_pipelines for pipeline in result_pipelines [ 'result' ] : if ( pipeline [ 'name' ] == name ) : r [ 'result' ] = pipeline [ 'id' ] return r r [ 'error' ] = 'No pipeline found with name={0}' . format ( name ) return r
get the pipeline id .