#NEWLINE# def get_os_items( self ) : #NEWLINE# #INDENT# if ( self . all_db_items is None ) : #NEWLINE# #INDENT# self . all_db_items = db_api . get_items ( self . context , 'sg' ) #NEWLINE# #UNINDENT# os_groups = security_group_engine . get_os_groups ( self . context ) #NEWLINE# if self . check_and_repair_default_groups ( os_groups , self . all_db_items ) : #NEWLINE# #INDENT# self . all_db_items = db_api . get_items ( self . context , 'sg' ) #NEWLINE# self . items = self . get_db_items ( ) #NEWLINE# os_groups = security_group_engine . get_os_groups ( self . context ) #NEWLINE# #UNINDENT# for os_group in os_groups : #NEWLINE# #INDENT# os_group [ 'name' ] = _translate_group_name ( os_group . context , os_group , self . all_db_items ) #NEWLINE# #UNINDENT# return os_groups