mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
use EXAMPLES vs inline examples (easier to format)
This commit is contained in:
parent
b7485ea4d6
commit
f7cabfe64e
1 changed files with 11 additions and 7 deletions
|
@ -67,17 +67,21 @@ options:
|
||||||
choices: []
|
choices: []
|
||||||
aliases: []
|
aliases: []
|
||||||
version_added: 0.1
|
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:
|
notes:
|
||||||
- This module does not yet have support to end maintenance windows.
|
- 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 json
|
||||||
import datetime
|
import datetime
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
Loading…
Reference in a new issue