From 2c947c2ed66026da558d35444173902bb976bb2c Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Sun, 10 Feb 2013 17:08:33 -0500 Subject: [PATCH] Adding aliases --- library/rabbitmq_vhost | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/rabbitmq_vhost b/library/rabbitmq_vhost index 13b36b4cc5..31cf86de85 100644 --- a/library/rabbitmq_vhost +++ b/library/rabbitmq_vhost @@ -31,11 +31,13 @@ options: - The name of the vhost to manage required: true default: null + aliases: [vhost] tracing: description: Enable/disable tracing for a vhost default: no choices: [yes, no] + aliases: [trace] state: description: - The state of vhost @@ -97,8 +99,8 @@ class RabbitMqVhost(object): def main(): arg_spec = dict( - name=dict(required=True), - tracing=dict(default='off', choices=BOOLEANS), + name=dict(required=True, aliases=['vhost']), + tracing=dict(default='off', choices=BOOLEANS, aliases=['trace']), state=dict(default='present', choices=['present', 'absent']) )