From 4c9f431792236cbcc90eb461c61f2ae3cf4f5327 Mon Sep 17 00:00:00 2001 From: Hagai Date: Thu, 1 May 2014 12:03:41 +0300 Subject: [PATCH] Add some argument aliases --- library/monitoring/bigpanda | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/monitoring/bigpanda b/library/monitoring/bigpanda index dbf8c411ca..6ad15a2406 100644 --- a/library/monitoring/bigpanda +++ b/library/monitoring/bigpanda @@ -12,6 +12,7 @@ options: description: - "The name of the component being deployed. Ex: billing" required: true + alias: name version: description: - The deployment version. @@ -30,6 +31,7 @@ options: - Name of affected host name. Can be a list. required: false default: machine's hostname + alias: host env: description: - The airbrake environment name, typically 'production', 'staging', etc. @@ -93,11 +95,11 @@ def main(): module = AnsibleModule( argument_spec=dict( - component=dict(required=True), + component=dict(required=True, aliases=['name']), version=dict(required=True), token=dict(required=True), state=dict(required=True, choices=['started', 'finished', 'failed']), - hosts=dict(required=False, default=[socket.gethostname()]), + hosts=dict(required=False, default=[socket.gethostname()], aliases=['host']), env=dict(required=False), owner=dict(required=False), description=dict(required=False),