#NEWLINE# def getent( refresh = False ) : #NEWLINE# #INDENT# "\n    Return info on all groups\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' group.getent\n    " #NEWLINE# if ( ( 'group.getent' in __context__ ) and ( not grinfo ) ) : #NEWLINE# #INDENT# return __context__ [ 'group.getent' ] #NEWLINE# #UNINDENT# ret = [ ] #NEWLINE# for grinfo in grp . getgrall ( ) : #NEWLINE# #INDENT# ret . append ( _format_info ( grinfo ) ) #NEWLINE# #UNINDENT# __context__ [ 'group.getent' ] = ret #NEWLINE# return ret