#NEWLINE# def get_service_cluster_attribute( args , cluster , jobs , parsing_service , current_job , host_id , instance_id , val ) : #NEWLINE# #INDENT# reg_expr = SERVICE_CLUSTER_ATTRIBUTE_REGEX . match ( val ) #NEWLINE# service = reg_expr . group ( 'service' ) #NEWLINE# attribute = reg_expr . group ( 'attribute' ) #NEWLINE# service_config = get_service_config ( instance_id , service , cluster ) #NEWLINE# return getattr ( service_config . cluster , attribute )