From edc1c4cb2fbd87b97d81908c8e86f06c233b0029 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 29 May 2013 18:34:38 -0400 Subject: [PATCH] use EXAMPLES vs inline examples (easier to format) --- monitoring/pagerduty | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/monitoring/pagerduty b/monitoring/pagerduty index 10309036f43..79ce307d91f 100644 --- a/monitoring/pagerduty +++ b/monitoring/pagerduty @@ -67,17 +67,21 @@ options: choices: [] aliases: [] version_added: 0.1 -examples: - - code: pagerduty name=companyabc user=example@example.com passwd=password123 state=ongoing" - description: List ongoing maintenance windows. - - code: pagerduty name=companyabc user=example@example.com passwd=password123 state=running service=FOO123" - description: Create a 1 hour maintenance window for service FOO123. - - code: pagerduty name=companyabc user=example@example.com passwd=password123 state=running service=FOO123 hours=4 desc=deployment" - description: Create a 4 hour maintenance window for service FOO123 with the description "deployment". notes: - This module does not yet have support to end maintenance windows. ''' +EXAMPLES=''' +# List ongoing maintenance windows. +pagerduty: name=companyabc user=example@example.com passwd=password123 state=ongoing + +# Create a 1 hour maintenance window for service FOO123. +pagerduty: name=companyabc user=example@example.com passwd=password123 state=running service=FOO123" + +# Create a 4 hour maintenance window for service FOO123 with the description "deployment". +pagerduty: name=companyabc user=example@example.com passwd=password123 state=running service=FOO123 hours=4 desc=deployment" +''' + import json import datetime import urllib2