#NEWLINE# def set_user_tags( name , tags , runas = None ) : #NEWLINE# #INDENT# "Add user tags via rabbitmqctl set_user_tags\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' rabbitmq.set_user_tags 'myadmin' 'administrator'\n    " #NEWLINE# if ( runas is None ) : #NEWLINE# #INDENT# runas = salt . utils . get_user ( ) #NEWLINE# #UNINDENT# if ( tags and isinstance ( tags , ( list , tuple ) ) ) : #NEWLINE# #INDENT# tags = ' ' . join ( tags ) #NEWLINE# #UNINDENT# res = __salt__ [ 'cmd.run' ] ( [ 'rabbitmqctl' , 'set_user_tags' , name , tags ] , runas = runas , python_shell = False ) #NEWLINE# msg = 'Tag(s) set' #NEWLINE# return _format_response ( msg , msg )