#NEWLINE# @ property #NEWLINE# def patched_roles( self ) : #NEWLINE# #INDENT# patched_role_names = list ( self . _patched_roles ) #NEWLINE# if ( not patched_role_names ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# cluster_roles = self . cluster . flavor [ 'roles' ] #NEWLINE# if ( not cluster_roles ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# roles = [ ] #NEWLINE# for cluster_role in cluster_roles : #NEWLINE# #INDENT# if ( self [ 'name' ] in patched_role_names ) : #NEWLINE# #INDENT# roles . append ( cluster_role ) #NEWLINE# #UNINDENT# #UNINDENT# return roles