#NEWLINE# @ classmethod #NEWLINE# def inject_plugin_attribute_values( cls , attributes ) : #NEWLINE# #INDENT# 'Inject given attributes with plugin attributes values.\n\n        :param attributes: Cluster attributes\n        :type attributes: dict\n        ' #NEWLINE# for ( k , attrs ) in six . iteritems ( metadata ) : #NEWLINE# #INDENT# if ( ( not cls . is_plugin_data ( attrs ) ) or ( not attrs [ 'metadata' ] [ 'enabled' ] ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# metadata = attrs [ 'metadata' ] #NEWLINE# selected_plugin_attrs = cls . _get_specific_version ( metadata . get ( 'versions' , [ ] ) , metadata . get ( 'chosen_id' ) ) #NEWLINE# selected_plugin_attrs . pop ( 'metadata' , None ) #NEWLINE# dict_update ( attrs , selected_plugin_attrs , 1 )