#NEWLINE# def _format_security_group( self , context , group ) : #NEWLINE# #INDENT# security_group = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# security_group [ 'id' ] = group [ 'id' ] #NEWLINE# security_group [ 'description' ] = group [ 'description' ] #NEWLINE# security_group [ 'name' ] = group [ 'name' ] #NEWLINE# security_group [ 'tenant_id' ] = group [ 'project_id' ] #NEWLINE# security_group [ 'rules' ] = [ ] #NEWLINE# for rule in group [ 'rules' ] : #NEWLINE# #INDENT# formatted_rule = self . _format_security_group_rule ( context , rule ) #NEWLINE# if formatted_rule : #NEWLINE# #INDENT# security_group [ 'rules' ] += [ formatted_rule ] #NEWLINE# #UNINDENT# #UNINDENT# return security_group