One of inconvinence this address is the the fact that
you have to pass user's tags even if you just want to
add a permission rule
Signed-off-by: Marian Rusu <rusumarian91@gmail.com>
The `rabbitmqctl list_users` command will list the user's last login time
which does not include `\t` character. This is causing a ValueError exception
when attempting to split a user and its tags from the command output. This
fix will check for a `\t` in the current line of the output before splitting.
Pivotal's packaging of RabbitMQ shows a banner at the end of the plugin
listing talking about their official plugins. The start of the banner is
divided by a blank line so the changed plugin listing will now
break after the first empty line.
An example listing with the rabbitmq_management plugin enabled:
```
$ rabbitmq-plugins list -E -m
rabbitmq_management
Pivotal officially maintains and supports the plugins:
rabbitmq_auth_backend_ldap, rabbitmq_auth_mechanism_ssl,
rabbitmq_consistent_hash_exchange, rabbitmq_federation,
rabbitmq_federation_management, rabbitmq_jms_topic_exchange,
rabbitmq_management, rabbitmq_management_agent,
rabbitmq_mqtt, rabbitmq_shovel, rabbitmq_shovel_management,
and rabbitmq_stomp.
```
Right now even if you pass in an empty tags list to the module (either with
an empty string or null) it will erroneously think the tags list have changed
and re-apply the tags on every run