saltstack/salt — pull request #9945 by grischa (2014-01-25 12:21:57+00:00)
Title: fixing bug in rabbitmq state

When the list is empty the variable vhost is undefined causing the state to fail.
I believe this simple change fixes it, it does for me, but I suggest the authors of the rabbitmq state have a look and confirm that this change works