#NEWLINE# def get_common_attrs( self , cluster ) : #NEWLINE# #INDENT# 'Common attributes for all facts.' #NEWLINE# common_attrs = super ( DeploymentHASerializer , self ) . get_common_attrs ( cluster ) #NEWLINE# common_attrs . update ( self . get_assigned_vips ( cluster ) ) #NEWLINE# common_attrs [ 'mp' ] = [ { #NEWLINE# #INDENT# 'point' : '1' , #NEWLINE# 'weight' : '1' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'point' : '2' , #NEWLINE# 'weight' : '2' , #NEWLINE# #UNINDENT# } ] #NEWLINE# last_controller = self . get_last_controller ( common_attrs [ 'nodes' ] ) #NEWLINE# common_attrs . update ( last_controller ) #NEWLINE# return common_attrs