#NEWLINE# def list_user_permissions( name , runas = None ) : #NEWLINE# #INDENT# "\n    List permissions for a user via rabbitmqctl list_user_permissions\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' rabbitmq.list_user_permissions 'user'.\n    " #NEWLINE# if ( name is None ) : #NEWLINE# #INDENT# runas = salt . utils . get_user ( ) #NEWLINE# #UNINDENT# res = __salt__ [ 'cmd.run' ] ( [ 'rabbitmqctl' , 'list_user_permissions' , name ] , runas = runas , python_shell = False ) #NEWLINE# return _output_to_dict ( res )