Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed EXAMPLES from ini_file #1132

Merged
merged 1 commit into from
Sep 29, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 9 additions & 12 deletions library/ini_file
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,22 @@ options:
description:
- all arguments accepted by the M(file) module also work here
required: false
examples:
- code: ini_file dest=/etc/conf section=drinks option=fav value=lemonade mode=0600 backup=true
description: Ensure C(fav=lemonade) is in section C([drinks]) in said file
- code: |
ini_file dest=/etc/anotherconf
section=drinks
option=temperature
value=cold
backup=true
notes:
- While it is possible to add an I(option) without specifying a I(value), this makes
no sense.
requirements: [ ConfigParser ]
author: Jan-Piet Mens
'''

EXAMPLES = [
"""
- code: ini_file dest=/etc/conf section=drinks option=fav value=lemonade mode=0600 backup=true
description: Ensure C(fav=lemonade) is in section C([drinks]) in said file
""",
""" ini_file dest=/etc/anotherconf
section=drinks
option=temperature
value=cold
backup=true
"""
]

import ConfigParser

Expand Down