#NEWLINE# def populate_groups_choices( self , request , context ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# groups = api . network . security_group_list ( sg ) #NEWLINE# security_group_list = [ ( sg . name , sg . name ) for sg in groups ] #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# exceptions . handle ( request , _ ( 'Unable to retrieve list of security groups' ) ) #NEWLINE# security_group_list = [ ] #NEWLINE# #UNINDENT# return security_group_list