#NEWLINE# def get_groups( name ) : #NEWLINE# #INDENT# cmd = [ ] #NEWLINE# cmd . append ( '/usr/bin/groups' ) #NEWLINE# cmd . append ( name ) #NEWLINE# ret = exec_cmd ( ' ' . join ( cmd ) ) #NEWLINE# if ( name [ 'returncode' ] != 0 ) : #NEWLINE# #INDENT# raise ResourceException ( ret [ 'stderr' ] ) #NEWLINE# #UNINDENT# return ret [ 'stdout' ] . split ( ':' ) [ 1 ] . lstrip ( ) . split ( )